#简介 ps命令经常用,但是从来没有系统学习。 而且,在不同的Linux发行版系统中,ps命令的使用也是有略微差别的。
#详解 使用ps --help
命令查看帮助文档
┌──(root㉿kali)-[~]
└─# ps --help
Usage:
ps [options]
Try 'ps --help <simple|list|output|threads|misc|all>'
or 'ps --help <s|l|o|t|m|a>'
for additional help text.
For more details see ps(1).
┌──(root㉿kali)-[~]
└─# ps --help simple
Usage:
ps [options]
Basic options:
-A, -e all processes
-a all with tty, except session leaders
a all with tty, including other users
-d all except session leaders
-N, --deselect negate selection
r only running processes
T all processes on this terminal
x processes without controlling ttys
For more details see ps(1).
┌──(root㉿kali)-[~]
└─# ps --help s
Usage:
ps [options]
Basic options:
-A, -e