使用man命令查看ps:report a snapshot of the current processes,记录当前时刻的进程状态快照,此命令是如何工作的,man中也介绍了,This ps works by reading the virtual files in /proc。此命令是通过查询/proc中的各个文件总结出来的。内存中的数据都会写入到/proc中,如图简单介绍下 ps命令有三种风格: 1 UNIX options, which may be grouped and must be preceded by a dash. 2 BSD options, which may be grouped and must not be used with a dash. 3 GNU long options, which are preceded by two dashes. ps命令的选项是非常之多的,常用组合有以下