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
Selection by list:
-C <command> command name
-G, --Group <gid> real group id or name
-g, --group <group> session or effective group name
-p, --pid <pid> process id
--ppid <pid> select by parent process id
-s, --sid <session> session id
-t, t, --tty <tty> terminal
-u, U, --user <uid> effective user id or name
-U, --User <uid> real user id or name
selection <arguments> take either:
comma-separated list e.g. '-u root,nobody' or
blank-separated list e.g. '-p 123 4567'
Output formats:
-F extra full
-f full-format, including command lines
f, --forest ascii art process tree
-H show process hierarchy
-j jobs format
j BSD job control format
-l long format
l BSD long format
-M, Z add security data (for SELinux)
-O <format> preloaded with default columns
O <format> as -O, with BSD personality
-o, o, --format <format>
user defined format
s signal format
u user-oriented format
v virtual memory format
X register format
-y do not show flags, show rrs vs. addr (used with -l)
--context display security context (for SELinux)
--headers repeat header lines, one per page
--no-headers do not print header at all
--cols, --columns, --width <num>
set screen width
--rows, --lines <num>
set screen height
Show threads:
H as if they where processes
-L possibly with LWP and NLWP columns
-m, m after processes
-T possibly with SPID column
Miscellaneous options:
-c show scheduling class with -l option
c show true command name
e show the environment after command
k, --sort specify sort order as: [+|-]key[,[+|-]key[,...]]
L list format specifiers
n display numeric uid and wchan
S, --cumulative include some dead child process data
-y do not show flags, show rss (only with -l)
-V, V, --version display version information and exit
-w, w unlimited output width
--help <simple|list|output|threads|misc|all>
display help and exit
For more details see ps(1).
shell的ps命令参数列表解释说明
原创
©著作权归作者所有:来自51CTO博客作者WEL测试的原创作品,请联系作者获取转载授权,否则将追究法律责任
提问和评论都可以,用心的回复会被更多人看到
评论
发布评论
相关文章
-
lsblk命令参数详解
lsblk命令用于列出块设备的信息,包括磁盘、分区和挂载点等。下面是lsblk命令的一些常用用法和示例讲解:
CentOS lsblk命令 Linux -
tar命令参数列表
命令参数列表压缩一组文件为tar.gz后缀。
.net C C++ C# HTML -
adb shell input命令与截屏命令解释说明
C:\Users\e.wang>adb shellshell@m2c:/ $ inputUsage: input [] [...]The sources are: mouse keyboard joystick to
adb shell input adb shell screencap ico -
Linux系统下Configure命令参数解释说明
Linux系统下Configure命令参数解释说明
命令 Linux 参数 休闲 configure -
参数列表python 参数列表中的参数称为
大多数过程和函数的声明头里都包括参数列表,如: function Sum(X : Integer; Y : Integer) : Integer;
参数列表python 保留字 传递参数 函数声明 -
java实际参数列表 java方法的参数列表
java实际参数列表 java方法的参数列表
JAVA方法的参数列表 字符串 编译器 传递对象 -
zabbix监控显示不可用状态未知
背景介绍由于EasyNVR的受众越来越多,时常会遇到很多类似的问题咨询,之前虽然有写过很多的博文进行技术的或者使用问题的解答,随着客户询问的增多,我发现,要想让客户了解问题和解决问题,往往引导和给一个思路比直接给与支持和回答更有效果。因此在后续的博文中我将不间断的更新Easy系列相关问题的自我排查和解决思路和方法。帮助大家解决问题的同时更加了解软件。问题反馈:EasyNVR显示设备不在线怎么办?问
zabbix监控显示不可用状态未知 EasyNVR设备不在线 设备端排查 网络端排查 H5、谷歌chrome直播