开箱即用,可以发送信号和按用户过滤。从man top
INTERACTION
When top is run in interactive (non-logging) mode, it is possible to control the output of top, as well as in-
teractively send signals to processes. The interactive command syntax is terse. Each command is one charac-
ter, followed by 0 to 2 arguments.
S<signal><pid>
Send <sig> to <pid>. <sig> can be specified either as a number or as a name (for example, HUP). The default
signal starts out as TERM. Each time a signal is successfully sent, the default signal is updated to be that
signal. <pid> is a process id.
U<user>
Only display processes owned by <user>. Either the username or uid number can be specified. To display all
processes, press enter without entering a username or uid number.
如果您想扩展top
自己,可以在http://opensource.apple.com上找到源代码。
sudo port install htop