ps - report a snapshot of the current processes.

ps - 报告当前进程的快照。

查看每个进程

# standard syntax
ps -ef

# BSD syntax
ps aux

查看内存占用情况

ps aux --sort=-%mem | head -10

查看系统上正在运行的进程,并以树状图(forest)显示进程之间的层级关系。

ps aux --forest