cam*_*o_u 47
您可以使用top
它将显示您的OSX上运行的所有内容
Jak*_*uld 43
使用top
并且ps
没问题,但我发现使用htop
它比Mac OS X使用的标准工具更好更清晰.我最喜欢的用途是在T
键盘运行时查看键以查看树视图中的进程(参见屏幕截图).显示哪些进程与其他进程共同依赖.
您可以使用以下方法从Homebrew安装它:
brew install htop
Run Code Online (Sandbox Code Playgroud)
如果你git
的系统上安装了Xcode和相关工具,并且你想从官方源代码库安装最新的开发代码 - 请遵循以下步骤.
首先从htop
GitHub存储库克隆源代码:
git clone git@github.com:hishamhm/htop.git
Run Code Online (Sandbox Code Playgroud)
现在进入存储库目录:
cd htop
Run Code Online (Sandbox Code Playgroud)
运行autogen.sh
:
./autogen.sh
Run Code Online (Sandbox Code Playgroud)
运行此configure
命令:
./configure
Run Code Online (Sandbox Code Playgroud)
configure
完成该过程后,运行make
:
make
Run Code Online (Sandbox Code Playgroud)
最后通过运行安装它sudo make install
:
sudo make install
Run Code Online (Sandbox Code Playgroud)
Dav*_*ave 19
试试ps -ef
.man ps
会给你所有的选择.
-A Display information about other users' processes, including those without controlling terminals.
-e Identical to -A.
-f Display the uid, pid, parent pid, recent CPU usage, process start time, controlling tty, elapsed CPU usage, and the associated command. If the -u option is also used, display
the user name rather then the numeric uid. When -o or -O is used to add to the display following -f, the command field is not truncated as severely as it is in other formats.
Run Code Online (Sandbox Code Playgroud)
尝试top
命令.它是一个交互式命令,将显示正在运行的进程.
您也可以使用Apple的"活动监视器"应用程序(位于/Applications/Utilities/
).
它提供了一个非常好的GUI.您可以查看所有正在运行的进程,由用户过滤它们,获取有关它们的扩展信息(CPU,内存,网络等),监视它们等等...
可能是你最好的选择,除非你想坚持使用终端(在这种情况下,请阅读top
或ps
手册,因为这些命令有很多选项).
归档时间: |
|
查看次数: |
138813 次 |
最近记录: |