linux ps 命令参数详解
-a 显示所有终端机下执行的进程,除了阶段作业领导者之外。
a 显示现行终端机下的所有进程,包括其他用户的进程。
-A 显示所有进程。
-c 显示CLS和PRI栏位。
c 列出进程时,显示每个进程真正的指令名称,而不包含路径,参数或常驻服务的标示。
-C<指令名称> 指定执行指令的名称,并列出该指令的进程的状况。
-d 显示所有进程,但不包括阶段作业领导者的进程。
-e 此参数的效果和指定"A"参数相同。
e 列出进程时,显示每个进程所使用的环境变量。
-f 显示UID,PPIP,C与STIME栏位。
f 用ASCII字符显示树状结构,表达进程间的相互关系。
-g<群组名称> 此参数的效果和指定"-G"参数相同,当亦能使用阶段作业领导者的名称来指定。
g 显示现行终端机下的所有进程,包括群组领导者的进程。
-G<群组识别码> 列出属于该群组的进程的状况,也可使用群组名称来指定。
h 不显示标题列。
-H 显示树状结构,表示进程间的相互关系。
-j或j 采用工作控制的格式显示进程状况。
-l或l 采用详细的格式来显示进程状况。
L 列出栏位的相关信息。
-m或m 显示所有的执行绪。
n 以数字来表示USER和WCHAN栏位。
-N 显示所有的进程,除了执行ps指令终端机下的进程之外。
-p<进程识别码> 指定进程识别码,并列出该进程的状况。
p<进程识别码> 此参数的效果和指定"-p"参数相同,只在列表格式方面稍有差异。
r 只列出现行终端机正在执行中的进程。
-s<阶段作业> 指定阶段作业的进程识别码,并列出隶属该阶段作业的进程的状况。
s 采用进程信号的格式显示进程状况。
S 列出进程时,包括已中断的子进程资料。
-t<终端机编号> 指定终端机编号,并列出属于该终端机的进程的状况。
t<终端机编号> 此参数的效果和指定"-t"参数相同,只在列表格式方面稍有差异。
-T 显示现行终端机下的所有进程。
-u<用户识别码> 此参数的效果和指定"-U"参数相同。
u 以用户为主的格式来显示进程状况。
-U<用户识别码> 列出属于该用户的进程的状况,也可使用用户名称来指定。
U<用户名称> 列出属于该用户的进程的状况。
v 采用虚拟内存的格式显示进程状况。
-V或V 显示版本信息。
-w或w 采用宽阔的格式来显示进程状况。
x 显示所有进程,不以终端机来区分。
X 采用旧式的Linux i386登陆格式显示进程状况。
-y 配合参数"-l"使用时,不显示F(flag)栏位,并以RSS栏位取代ADDR栏位。
常用组合
ps -ef
ps aux 或 ps -aux
ps auxc 或 ps -auxc
ps axjf 或 ps -axjf
ps axjfc 或 ps -axjfc
# ps -aux
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
root 1 0.0 0.1 43392 3600 ? Ss 8月31 2:44 /usr/lib/systemd/systemd --system --deserialize 2
root 2 0.0 0.0 0 0 ? S 8月31 0:00 [kthreadd]
root 3 0.0 0.0 0 0 ? S 8月31 0:27 [ksoftirqd/0]
root 5 0.0 0.0 0 0 ? S< 8月31 0:00 [kworker/0:0H]
root 7 0.0 0.0 0 0 ? S 8月31 0:00 [migration/0]
root 8 0.0 0.0 0 0 ? S 8月31 0:00 [rcu_bh]
root 9 0.0 0.0 0 0 ? R 8月31 18:33 [rcu_sched]
root 10 0.0 0.0 0 0 ? S 8月31 0:35 [watchdog/0]
root 12 0.0 0.0 0 0 ? S 8月31 0:00 [kdevtmpfs]
root 13 0.0 0.0 0 0 ? S< 8月31 0:00 [netns]
root 14 0.0 0.0 0 0 ? S 8月31 0:02 [khungtaskd]
root 15 0.0 0.0 0 0 ? S< 8月31 0:00 [writeback]
root 16 0.0 0.0 0 0 ? S< 8月31 0:00 [kintegrityd]
root 17 0.0 0.0 0 0 ? S< 8月31 0:00 [bioset]
root 18 0.0 0.0 0 0 ? S< 8月31 0:00 [kblockd]
root 19 0.0 0.0 0 0 ? S< 8月31 0:00 [md]
root 25 0.0 0.0 0 0 ? S 8月31 0:01 [kswapd0]
root 26 0.0 0.0 0 0 ? SN 8月31 0:00 [ksmd]
root 27 0.0 0.0 0 0 ? SN 8月31 0:13 [khugepaged]
root 28 0.0 0.0 0 0 ? S< 8月31 0:00 [crypto]
root 36 0.0 0.0 0 0 ? S< 8月31 0:00 [kthrotld]
root 38 0.0 0.0 0 0 ? S< 8月31 0:00 [kmpath_rdacd]
root 39 0.0 0.0 0 0 ? S< 8月31 0:00 [kpsmoused]
root 40 0.0 0.0 0 0 ? S< 8月31 0:00 [ipv6_addrconf]
root 59 0.0 0.0 0 0 ? S< 8月31 0:00 [deferwq]
root 103 0.0 0.0 0 0 ? S 8月31 0:00 [kauditd]
root 231 0.0 0.0 0 0 ? S< 8月31 0:00 [ata_sff]
root 235 0.0 0.0 0 0 ? S 8月31 0:00 [scsi_eh_0]
root 236 0.0 0.0 0 0 ? S< 8月31 0:00 [scsi_tmf_0]
root 237 0.0 0.0 0 0 ? S 8月31 0:00 [scsi_eh_1]
root 238 0.0 0.0 0 0 ? S< 8月31 0:00 [scsi_tmf_1]
root 241 0.0 0.0 0 0 ? S< 8月31 0:00 [ttm_swap]
root 253 0.0 0.0 0 0 ? S< 8月31 0:09 [kworker/0:1H]
root 258 0.0 0.0 0 0 ? S 8月31 0:15 [jbd2/vda1-8]
root 259 0.0 0.0 0 0 ? S< 8月31 0:00 [ext4-rsv-conver]
root 326 0.0 2.0 77900 37748 ? Ss 8月31 0:26 /usr/lib/systemd/systemd-journald
root 434 0.0 0.0 0 0 ? S< 8月31 0:00 [edac-poller]
dbus 455 0.0 0.0 24552 1676 ? Ss 8月31 0:30 /bin/dbus-daemon --system --address=systemd: --no
root 463 0.0 0.1 24712 1888 ? Ss 8月31 0:18 /usr/lib/systemd/systemd-logind
root 506 0.0 0.0 110044 664 ttyS0 Ss+ 8月31 0:00 /sbin/agetty --keep-baud 115200 38400 9600 ttyS0
root 507 0.0 0.0 110044 676 tty1 Ss+ 8月31 0:00 /sbin/agetty --noclear tty1 linux
root 710 0.0 0.6 113372 12596 ? Ss 8月31 0:00 /sbin/dhclient -1 -q -lf /var/lib/dhclient/dhclie
root 3410 0.0 0.1 65372 2292 ? Ssl 8月31 20:47 /usr/sbin/aliyun-service
root 5700 0.0 0.0 0 0 ? S 9月27 0:00 [kworker/u2:0]
root 6002 0.0 0.2 145264 3784 ? Ssl 8月31 106:24 /usr/local/redis/bin/redis-server 127.0.0.1:6379
root 9118 0.0 0.2 112812 4312 ? Ss 9月27 0:01 /usr/sbin/sshd -D
ntp 10506 0.0 0.0 29908 1576 ? Ss 8月31 0:31 /usr/sbin/ntpd -u ntp:ntp -g
root 13259 0.0 0.1 24584 2236 ? Ss 11月14 0:00 nginx: master process /usr/local/nginx/sbin/ngin
root 13270 0.0 0.0 113308 1624 ? S 11月14 0:00 /bin/sh /usr/local/mysql/bin/mysqld_safe --datad
root 13410 0.0 0.0 0 0 ? S 9月07 0:17 [kworker/u2:1]
mysql 13766 0.0 2.8 633408 52944 ? Sl 11月14 8:09 /usr/local/mysql/bin/mysqld --basedir=/usr/local
root 13789 0.0 0.3 277616 6336 ? Ss 11月14 0:40 php-fpm: master process (/usr/local/php/etc/php-
www 13790 0.0 0.7 285268 14104 ? S 11月14 0:07 php-fpm: pool www
www 13791 0.0 0.7 285296 14120 ? S 11月14 0:08 php-fpm: pool www
www 13792 0.0 0.8 287392 16568 ? S 11月14 0:08 php-fpm: pool www
www 13793 0.0 0.8 287528 16364 ? S 11月14 0:07 php-fpm: pool www
www 13794 0.0 0.8 288040 16944 ? S 11月14 0:07 php-fpm: pool www
www 13795 0.0 0.8 287388 16216 ? S 11月14 0:07 php-fpm: pool www
www 13796 0.0 0.8 286360 15224 ? S 11月14 0:07 php-fpm: pool www
www 13797 0.0 0.8 287388 16552 ? S 11月14 0:07 php-fpm: pool www
www 13798 0.0 0.8 287788 16624 ? S 11月14 0:07 php-fpm: pool www
www 13799 0.0 1.0 289692 20444 ? S 11月14 0:07 php-fpm: pool www
www 13820 0.0 1.2 45796 23628 ? S 11月14 0:01 nginx: worker process
www 13836 0.0 0.8 287780 16608 ? S 11月14 0:07 php-fpm: pool www
www 14585 0.0 0.7 284956 13628 ? S 11月15 0:07 php-fpm: pool www
root 17985 0.0 0.0 126280 1604 ? Ss 9月27 0:09 /usr/sbin/crond -n
root 18012 0.0 0.0 55508 1104 ? S<sl 9月27 0:04 /sbin/auditd
root 18066 0.0 1.2 320876 22880 ? Ssl 9月27 4:07 /usr/sbin/rsyslogd -n
root 18139 0.0 0.0 25904 944 ? Ss 9月27 0:00 /usr/sbin/atd -f
polkitd 18222 0.0 0.7 538432 13964 ? Ssl 9月27 0:09 /usr/lib/polkit-1/polkitd --no-debug
root 18272 0.0 0.8 573812 16848 ? Ssl 9月27 9:24 /usr/bin/python -Es /usr/sbin/tuned -l -P
root 20334 0.0 0.0 0 0 ? S 11月28 0:04 [kworker/0:2]
root 20357 0.0 0.0 44232 1720 ? Ss 11月28 0:00 /usr/lib/systemd/systemd-udevd
root 20532 0.0 0.1 31672 3192 ? Ssl 9月13 28:29 /usr/local/aegis/aegis_update/AliYunDunUpdate
root 20543 0.3 0.8 141904 16888 ? Ssl 9月13 346:19 /usr/local/aegis/aegis_client/aegis_10_51/AliYunD
root 22201 0.0 0.0 0 0 ? R 11月28 0:06 [kworker/0:1]
root 24044 0.0 0.3 157208 6020 ? Ss 10:06 0:00 sshd: root@pts/0
root 24046 0.0 0.1 115436 2060 pts/0 Ss 10:06 0:00 -bash
# ps -ef
UID PID PPID C STIME TTY TIME CMD
root 1 0 0 8月31 ? 00:02:44 /usr/lib/systemd/systemd --system --deserialize 22
root 2 0 0 8月31 ? 00:00:00 [kthreadd]
root 3 2 0 8月31 ? 00:00:27 [ksoftirqd/0]
root 5 2 0 8月31 ? 00:00:00 [kworker/0:0H]
root 7 2 0 8月31 ? 00:00:00 [migration/0]
root 8 2 0 8月31 ? 00:00:00 [rcu_bh]
root 9 2 0 8月31 ? 00:18:33 [rcu_sched]
root 10 2 0 8月31 ? 00:00:35 [watchdog/0]
root 12 2 0 8月31 ? 00:00:00 [kdevtmpfs]
root 13 2 0 8月31 ? 00:00:00 [netns]
root 14 2 0 8月31 ? 00:00:02 [khungtaskd]
root 15 2 0 8月31 ? 00:00:00 [writeback]
root 16 2 0 8月31 ? 00:00:00 [kintegrityd]
root 17 2 0 8月31 ? 00:00:00 [bioset]
root 18 2 0 8月31 ? 00:00:00 [kblockd]
root 19 2 0 8月31 ? 00:00:00 [md]
root 25 2 0 8月31 ? 00:00:01 [kswapd0]
root 26 2 0 8月31 ? 00:00:00 [ksmd]
root 27 2 0 8月31 ? 00:00:13 [khugepaged]
root 28 2 0 8月31 ? 00:00:00 [crypto]
root 36 2 0 8月31 ? 00:00:00 [kthrotld]
root 38 2 0 8月31 ? 00:00:00 [kmpath_rdacd]
root 39 2 0 8月31 ? 00:00:00 [kpsmoused]
root 40 2 0 8月31 ? 00:00:00 [ipv6_addrconf]
root 59 2 0 8月31 ? 00:00:00 [deferwq]
root 103 2 0 8月31 ? 00:00:00 [kauditd]
root 231 2 0 8月31 ? 00:00:00 [ata_sff]
root 235 2 0 8月31 ? 00:00:00 [scsi_eh_0]
root 236 2 0 8月31 ? 00:00:00 [scsi_tmf_0]
root 237 2 0 8月31 ? 00:00:00 [scsi_eh_1]
root 238 2 0 8月31 ? 00:00:00 [scsi_tmf_1]
root 241 2 0 8月31 ? 00:00:00 [ttm_swap]
root 253 2 0 8月31 ? 00:00:09 [kworker/0:1H]
root 258 2 0 8月31 ? 00:00:15 [jbd2/vda1-8]
root 259 2 0 8月31 ? 00:00:00 [ext4-rsv-conver]
root 326 1 0 8月31 ? 00:00:26 /usr/lib/systemd/systemd-journald
root 434 2 0 8月31 ? 00:00:00 [edac-poller]
dbus 455 1 0 8月31 ? 00:00:30 /bin/dbus-daemon --system --address=systemd: --nofork --nopidfile -
root 463 1 0 8月31 ? 00:00:18 /usr/lib/systemd/systemd-logind
root 506 1 0 8月31 ttyS0 00:00:00 /sbin/agetty --keep-baud 115200 38400 9600 ttyS0 vt220
root 507 1 0 8月31 tty1 00:00:00 /sbin/agetty --noclear tty1 linux
root 710 1 0 8月31 ? 00:00:00 /sbin/dhclient -1 -q -lf /var/lib/dhclient/dhclient--eth0.lease -pf
root 3410 1 0 8月31 ? 00:20:47 /usr/sbin/aliyun-service
root 5700 2 0 9月27 ? 00:00:00 [kworker/u2:0]
root 6002 1 0 8月31 ? 01:46:24 /usr/local/redis/bin/redis-server 127.0.0.1:6379
root 9118 1 0 9月27 ? 00:00:01 /usr/sbin/sshd -D
ntp 10506 1 0 8月31 ? 00:00:31 /usr/sbin/ntpd -u ntp:ntp -g
root 13259 1 0 11月14 ? 00:00:00 nginx: master process /usr/local/nginx/sbin/nginx -c /usr/local/ngi
root 13270 1 0 11月14 ? 00:00:00 /bin/sh /usr/local/mysql/bin/mysqld_safe --datadir=/usr/local/mysql
root 13410 2 0 9月07 ? 00:00:17 [kworker/u2:1]
mysql 13766 13270 0 11月14 ? 00:08:09 /usr/local/mysql/bin/mysqld --basedir=/usr/local/mysql --datadir=/u
root 13789 1 0 11月14 ? 00:00:40 php-fpm: master process (/usr/local/php/etc/php-fpm.conf)
www 13790 13789 0 11月14 ? 00:00:07 php-fpm: pool www
www 13791 13789 0 11月14 ? 00:00:08 php-fpm: pool www
www 13792 13789 0 11月14 ? 00:00:08 php-fpm: pool www
www 13793 13789 0 11月14 ? 00:00:07 php-fpm: pool www
www 13794 13789 0 11月14 ? 00:00:07 php-fpm: pool www
www 13795 13789 0 11月14 ? 00:00:07 php-fpm: pool www
www 13796 13789 0 11月14 ? 00:00:07 php-fpm: pool www
www 13797 13789 0 11月14 ? 00:00:07 php-fpm: pool www
www 13798 13789 0 11月14 ? 00:00:07 php-fpm: pool www
www 13799 13789 0 11月14 ? 00:00:07 php-fpm: pool www
www 13820 13259 0 11月14 ? 00:00:01 nginx: worker process
www 13836 13789 0 11月14 ? 00:00:07 php-fpm: pool www
www 14585 13789 0 11月15 ? 00:00:07 php-fpm: pool www
root 17985 1 0 9月27 ? 00:00:09 /usr/sbin/crond -n
root 18012 1 0 9月27 ? 00:00:04 /sbin/auditd
root 18066 1 0 9月27 ? 00:04:07 /usr/sbin/rsyslogd -n
root 18139 1 0 9月27 ? 00:00:00 /usr/sbin/atd -f
polkitd 18222 1 0 9月27 ? 00:00:09 /usr/lib/polkit-1/polkitd --no-debug
root 18272 1 0 9月27 ? 00:09:24 /usr/bin/python -Es /usr/sbin/tuned -l -P
root 20334 2 0 11月28 ? 00:00:04 [kworker/0:2]
root 20357 1 0 11月28 ? 00:00:00 /usr/lib/systemd/systemd-udevd
root 20532 1 0 9月13 ? 00:28:29 /usr/local/aegis/aegis_update/AliYunDunUpdate
root 20543 1 0 9月13 ? 05:46:20 /usr/local/aegis/aegis_client/aegis_10_51/AliYunDun
root 22201 2 0 11月28 ? 00:00:06 [kworker/0:1]
root 24044 9118 0 10:06 ? 00:00:00 sshd: root@pts/0
root 24046 24044 0 10:06 pts/0 00:00:00 -bash
root 24094 24046 0 10:23 pts/0 00:00:00 ps -ef
# ps axjf
PPID PID PGID SID TTY TPGID STAT UID TIME COMMAND
0 2 0 0 ? -1 S 0 0:00 [kthreadd]
2 3 0 0 ? -1 S 0 0:27 \_ [ksoftirqd/0]
2 5 0 0 ? -1 S< 0 0:00 \_ [kworker/0:0H]
2 7 0 0 ? -1 S 0 0:00 \_ [migration/0]
2 8 0 0 ? -1 S 0 0:00 \_ [rcu_bh]
2 9 0 0 ? -1 R 0 18:33 \_ [rcu_sched]
2 10 0 0 ? -1 S 0 0:35 \_ [watchdog/0]
2 12 0 0 ? -1 S 0 0:00 \_ [kdevtmpfs]
2 13 0 0 ? -1 S< 0 0:00 \_ [netns]
2 14 0 0 ? -1 S 0 0:02 \_ [khungtaskd]
2 15 0 0 ? -1 S< 0 0:00 \_ [writeback]
2 16 0 0 ? -1 S< 0 0:00 \_ [kintegrityd]
2 17 0 0 ? -1 S< 0 0:00 \_ [bioset]
2 18 0 0 ? -1 S< 0 0:00 \_ [kblockd]
2 19 0 0 ? -1 S< 0 0:00 \_ [md]
2 25 0 0 ? -1 S 0 0:01 \_ [kswapd0]
2 26 0 0 ? -1 SN 0 0:00 \_ [ksmd]
2 27 0 0 ? -1 SN 0 0:13 \_ [khugepaged]
2 28 0 0 ? -1 S< 0 0:00 \_ [crypto]
2 36 0 0 ? -1 S< 0 0:00 \_ [kthrotld]
2 38 0 0 ? -1 S< 0 0:00 \_ [kmpath_rdacd]
2 39 0 0 ? -1 S< 0 0:00 \_ [kpsmoused]
2 40 0 0 ? -1 S< 0 0:00 \_ [ipv6_addrconf]
2 59 0 0 ? -1 S< 0 0:00 \_ [deferwq]
2 103 0 0 ? -1 S 0 0:00 \_ [kauditd]
2 231 0 0 ? -1 S< 0 0:00 \_ [ata_sff]
2 235 0 0 ? -1 S 0 0:00 \_ [scsi_eh_0]
2 236 0 0 ? -1 S< 0 0:00 \_ [scsi_tmf_0]
2 237 0 0 ? -1 S 0 0:00 \_ [scsi_eh_1]
2 238 0 0 ? -1 S< 0 0:00 \_ [scsi_tmf_1]
2 241 0 0 ? -1 S< 0 0:00 \_ [ttm_swap]
2 253 0 0 ? -1 S< 0 0:09 \_ [kworker/0:1H]
2 258 0 0 ? -1 S 0 0:15 \_ [jbd2/vda1-8]
2 259 0 0 ? -1 S< 0 0:00 \_ [ext4-rsv-conver]
2 434 0 0 ? -1 S< 0 0:00 \_ [edac-poller]
2 13410 0 0 ? -1 S 0 0:17 \_ [kworker/u2:1]
2 5700 0 0 ? -1 S 0 0:00 \_ [kworker/u2:0]
2 20334 0 0 ? -1 S 0 0:04 \_ [kworker/0:2]
2 22201 0 0 ? -1 S 0 0:06 \_ [kworker/0:1]
0 1 1 1 ? -1 Ss 0 2:44 /usr/lib/systemd/systemd --system --deserialize 22
1 326 326 326 ? -1 Ss 0 0:26 /usr/lib/systemd/systemd-journald
1 455 455 455 ? -1 Ss 81 0:30 /bin/dbus-daemon --system --address=systemd: --nofork --no
1 463 463 463 ? -1 Ss 0 0:18 /usr/lib/systemd/systemd-logind
1 506 506 506 ttyS0 506 Ss+ 0 0:00 /sbin/agetty --keep-baud 115200 38400 9600 ttyS0 vt220
1 507 507 507 tty1 507 Ss+ 0 0:00 /sbin/agetty --noclear tty1 linux
1 710 710 710 ? -1 Ss 0 0:00 /sbin/dhclient -1 -q -lf /var/lib/dhclient/dhclient--eth0.
1 3410 3410 3410 ? -1 Ssl 0 20:47 /usr/sbin/aliyun-service
1 10506 10506 10506 ? -1 Ss 38 0:31 /usr/sbin/ntpd -u ntp:ntp -g
1 6002 6002 6002 ? -1 Ssl 0 106:24 /usr/local/redis/bin/redis-server 127.0.0.1:6379
1 20532 20532 20532 ? -1 Ssl 0 28:29 /usr/local/aegis/aegis_update/AliYunDunUpdate
1 20543 20543 20543 ? -1 Ssl 0 346:19 /usr/local/aegis/aegis_client/aegis_10_51/AliYunDun
1 9118 9118 9118 ? -1 Ss 0 0:01 /usr/sbin/sshd -D
9118 24044 24044 24044 ? -1 Ss 0 0:00 \_ sshd: root@pts/0
24044 24046 24046 24046 pts/0 24090 Ss 0 0:00 \_ -bash
24046 24090 24090 24046 pts/0 24090 R+ 0 0:00 \_ ps axjf
1 17985 17985 17985 ? -1 Ss 0 0:09 /usr/sbin/crond -n
1 18012 18012 18012 ? -1 S<sl 0 0:04 /sbin/auditd
1 18066 18066 18066 ? -1 Ssl 0 4:07 /usr/sbin/rsyslogd -n
1 18139 18139 18139 ? -1 Ss 0 0:00 /usr/sbin/atd -f
1 18222 18222 18222 ? -1 Ssl 999 0:09 /usr/lib/polkit-1/polkitd --no-debug
1 18272 18272 18272 ? -1 Ssl 0 9:24 /usr/bin/python -Es /usr/sbin/tuned -l -P
1 13259 13259 13259 ? -1 Ss 0 0:00 nginx: master process /usr/local/nginx/sbin/nginx -c /usr/
13259 13820 13259 13259 ? -1 S 1001 0:01 \_ nginx: worker process
1 13270 13100 8932 ? -1 S 0 0:00 /bin/sh /usr/local/mysql/bin/mysqld_safe --datadir=/usr/lo
13270 13766 13100 8932 ? -1 Sl 1000 8:09 \_ /usr/local/mysql/bin/mysqld --basedir=/usr/local/mysql
1 13789 13789 13789 ? -1 Ss 0 0:40 php-fpm: master process (/usr/local/php/etc/php-fpm.conf)
13789 13790 13789 13789 ? -1 S 1001 0:07 \_ php-fpm: pool www
13789 13791 13789 13789 ? -1 S 1001 0:08 \_ php-fpm: pool www
13789 13792 13789 13789 ? -1 S 1001 0:08 \_ php-fpm: pool www
13789 13793 13789 13789 ? -1 S 1001 0:07 \_ php-fpm: pool www
13789 13794 13789 13789 ? -1 S 1001 0:07 \_ php-fpm: pool www
13789 13795 13789 13789 ? -1 S 1001 0:07 \_ php-fpm: pool www
13789 13796 13789 13789 ? -1 S 1001 0:07 \_ php-fpm: pool www
13789 13797 13789 13789 ? -1 S 1001 0:07 \_ php-fpm: pool www
13789 13798 13789 13789 ? -1 S 1001 0:07 \_ php-fpm: pool www
13789 13799 13789 13789 ? -1 S 1001 0:07 \_ php-fpm: pool www
13789 13836 13789 13789 ? -1 S 1001 0:07 \_ php-fpm: pool www
13789 14585 13789 13789 ? -1 S 1001 0:07 \_ php-fpm: pool www
1 20357 20357 20357 ? -1 Ss 0 0:00 /usr/lib/systemd/systemd-udevd
对比一下加c的效果,
# ps axjfc
PPID PID PGID SID TTY TPGID STAT UID TIME COMMAND
0 2 0 0 ? -1 S 0 0:00 kthreadd
2 3 0 0 ? -1 S 0 0:27 \_ ksoftirqd/0
2 5 0 0 ? -1 S< 0 0:00 \_ kworker/0:0H
2 7 0 0 ? -1 S 0 0:00 \_ migration/0
2 8 0 0 ? -1 S 0 0:00 \_ rcu_bh
2 9 0 0 ? -1 R 0 18:33 \_ rcu_sched
2 10 0 0 ? -1 S 0 0:35 \_ watchdog/0
2 12 0 0 ? -1 S 0 0:00 \_ kdevtmpfs
2 13 0 0 ? -1 S< 0 0:00 \_ netns
2 14 0 0 ? -1 S 0 0:02 \_ khungtaskd
2 15 0 0 ? -1 S< 0 0:00 \_ writeback
2 16 0 0 ? -1 S< 0 0:00 \_ kintegrityd
2 17 0 0 ? -1 S< 0 0:00 \_ bioset
2 18 0 0 ? -1 S< 0 0:00 \_ kblockd
2 19 0 0 ? -1 S< 0 0:00 \_ md
2 25 0 0 ? -1 S 0 0:01 \_ kswapd0
2 26 0 0 ? -1 SN 0 0:00 \_ ksmd
2 27 0 0 ? -1 SN 0 0:13 \_ khugepaged
2 28 0 0 ? -1 S< 0 0:00 \_ crypto
2 36 0 0 ? -1 S< 0 0:00 \_ kthrotld
2 38 0 0 ? -1 S< 0 0:00 \_ kmpath_rdacd
2 39 0 0 ? -1 S< 0 0:00 \_ kpsmoused
2 40 0 0 ? -1 S< 0 0:00 \_ ipv6_addrconf
2 59 0 0 ? -1 S< 0 0:00 \_ deferwq
2 103 0 0 ? -1 S 0 0:00 \_ kauditd
2 231 0 0 ? -1 S< 0 0:00 \_ ata_sff
2 235 0 0 ? -1 S 0 0:00 \_ scsi_eh_0
2 236 0 0 ? -1 S< 0 0:00 \_ scsi_tmf_0
2 237 0 0 ? -1 S 0 0:00 \_ scsi_eh_1
2 238 0 0 ? -1 S< 0 0:00 \_ scsi_tmf_1
2 241 0 0 ? -1 S< 0 0:00 \_ ttm_swap
2 253 0 0 ? -1 S< 0 0:09 \_ kworker/0:1H
2 258 0 0 ? -1 S 0 0:15 \_ jbd2/vda1-8
2 259 0 0 ? -1 S< 0 0:00 \_ ext4-rsv-conver
2 434 0 0 ? -1 S< 0 0:00 \_ edac-poller
2 13410 0 0 ? -1 S 0 0:17 \_ kworker/u2:1
2 5700 0 0 ? -1 S 0 0:00 \_ kworker/u2:0
2 20334 0 0 ? -1 S 0 0:04 \_ kworker/0:2
2 22201 0 0 ? -1 S 0 0:06 \_ kworker/0:1
0 1 1 1 ? -1 Ss 0 2:44 systemd
1 326 326 326 ? -1 Ss 0 0:26 systemd-journal
1 455 455 455 ? -1 Ss 81 0:30 dbus-daemon
1 463 463 463 ? -1 Ss 0 0:18 systemd-logind
1 506 506 506 ttyS0 506 Ss+ 0 0:00 agetty
1 507 507 507 tty1 507 Ss+ 0 0:00 agetty
1 710 710 710 ? -1 Ss 0 0:00 dhclient
1 3410 3410 3410 ? -1 Ssl 0 20:47 aliyun-service
1 10506 10506 10506 ? -1 Ss 38 0:31 ntpd
1 6002 6002 6002 ? -1 Ssl 0 106:25 redis-server
1 20532 20532 20532 ? -1 Ssl 0 28:29 AliYunDunUpdate
1 20543 20543 20543 ? -1 Ssl 0 346:23 AliYunDun
1 9118 9118 9118 ? -1 Ss 0 0:01 sshd
9118 24111 24111 24111 ? -1 Ss 0 0:00 \_ sshd
24111 24113 24113 24113 pts/0 24128 Ss 0 0:00 \_ bash
24113 24128 24128 24113 pts/0 24128 R+ 0 0:00 \_ ps
1 17985 17985 17985 ? -1 Ss 0 0:09 crond
1 18012 18012 18012 ? -1 S<sl 0 0:04 auditd
1 18066 18066 18066 ? -1 Ssl 0 4:07 rsyslogd
1 18139 18139 18139 ? -1 Ss 0 0:00 atd
1 18222 18222 18222 ? -1 Ssl 999 0:09 polkitd
1 18272 18272 18272 ? -1 Ssl 0 9:24 tuned
1 13259 13259 13259 ? -1 Ss 0 0:00 nginx
13259 13820 13259 13259 ? -1 S 1001 0:01 \_ nginx
1 13270 13100 8932 ? -1 S 0 0:00 mysqld_safe
13270 13766 13100 8932 ? -1 Sl 1000 8:10 \_ mysqld
1 13789 13789 13789 ? -1 Ss 0 0:40 php-fpm
13789 13790 13789 13789 ? -1 S 1001 0:07 \_ php-fpm
13789 13791 13789 13789 ? -1 S 1001 0:08 \_ php-fpm
13789 13792 13789 13789 ? -1 S 1001 0:08 \_ php-fpm
13789 13793 13789 13789 ? -1 S 1001 0:07 \_ php-fpm
13789 13794 13789 13789 ? -1 S 1001 0:07 \_ php-fpm
13789 13795 13789 13789 ? -1 S 1001 0:07 \_ php-fpm
13789 13796 13789 13789 ? -1 S 1001 0:07 \_ php-fpm
13789 13797 13789 13789 ? -1 S 1001 0:07 \_ php-fpm
13789 13798 13789 13789 ? -1 S 1001 0:07 \_ php-fpm
13789 13799 13789 13789 ? -1 S 1001 0:07 \_ php-fpm
13789 13836 13789 13789 ? -1 S 1001 0:07 \_ php-fpm
13789 14585 13789 13789 ? -1 S 1001 0:07 \_ php-fpm
1 20357 20357 20357 ? -1 Ss 0 0:00 systemd-udevd
# pgrep php-fpm
13789
13790
13791
13792
13793
13794
13795
13796
13797
13798
13799
13836
14585
# pgrep -o php-fpm
13789
c 可以查看真实的进程名。
axjf 可以查看进程之前的管理。更加清晰。
linux ps 命令参数详解的更多相关文章
- (转)Linux curl命令参数详解
Linux curl命令参数详解 命令:curl在Linux中curl是一个利用URL规则在命令行下工作的文件传输工具,可以说是一款很强大的http命令行工具.它支持文件的上传和下载,是综合传输工具, ...
- Linux ls命令参数详解
-a -- 全部(all).列举目录中的全部文件,包括隐藏文件(.filename).位于这个列表的起首处的 .. 和 . 依次是指父目录和你的当前目录. -l -- 长(long).列举目 ...
- Linux ls命令参数详解 <转>
下面是一个与 ls 一起使用的一些常用选项的简短列表.请记住,你可以通过阅读 ls 的说明书页(man ls)来获得选项的完整列表. -a – 全部(all).列举目录中的全部文件,包括隐藏文件(.f ...
- linux Tar 命令参数详解
tar命令 . 作用 tar命令是Unix/Linux系统中备份文件的可靠方法,几乎可以工作于任何环境中,它的使用权限是所有用户. . 格式 tar [主选项+辅选项] 文件或目录 eg: tar z ...
- Linux curl命令参数详解(6/23)
linux curl是通过url语法在命令行下上传或下载文件的工具软件,它支持http,https,ftp,ftps,telnet等多种协议,常被用来抓取网页和监控Web服务器状态. 在Linux中c ...
- Linux curl命令参数详解--转载
linux curl是通过url语法在命令行下上传或下载文件的工具软件,它支持http,https,ftp,ftps,telnet等多种协议,常被用来抓取网页和监控Web服务器状态. 一.Linux ...
- linux ll 命令参数详解
linux ll和Linuxls 的区别 可看 http://www.cnblogs.com/jxhd1/p/6548449.html 用法:ls [选项]... [文件]... 列出 FILE 的信 ...
- Linux sar命令参数详解
转载自http://www.chinaz.com/server/2013/0401/297942.shtml sar(System Activity Reporter系统活动情况报告)是目前 Linu ...
- Linux curl命令参数详解
笔者出处:http://www.aiezu.com/system/linux/linux_curl_syntax.html linux curl是通过url语法在命令行下上传或下载文件的工具软件,它支 ...
随机推荐
- OpenGL1.0 线段
OpenGL1.0线段 DionysosLai2014-06-16 本篇作为我学习Opengl第一篇文档.希望自己能在图形学路上走得远一点,达到可以渲染游戏画质目的,现阶段是Box2 ...
- windows 本地配置hadoop客户端
下载解压 hadoop 至D:\hadoop2.6.0 配置环境变量 HADOOP_HOME=D:\hadoop2.6.0 下载hadoop windows插件 将dll文件放入C:\Windows ...
- jQuery HTML操作学习笔记
学习资料 jQuery教程 获取 1.获取.设置元素的内容 1.1获取或设置目标元素的文本内容 语法 $(selector).text(); 获取元素文本内容 $(selector).text(con ...
- Java基础知识陷阱(五)
本文发表于本人博客. 今天我来说说关于静态变量初始化.数组.==与equals的问题,看下面代码: public class Test{ private final int age; private ...
- Log4net 自定义字段 写入Oracle 使用ODP.NET Managed驱动
一.环境说明: 开发工具:vs2010 ,数据库:oracle 11g ,版本:log4net的目前最新版本1.2.13.0 : Oracle.ManagedDataAccess.dll ...
- matplotlib.pyplot 让数据可视化
1.条形图 import matplotlib.pyplot as plt plt.style.use('ggplot') # 使用ggplot样式来模拟ggplot2风格的图形,ggplot2是一个 ...
- modelform 使用
modelForm (1) model的知识点: class UserInfo(AbstractUser): tel = models.CharField(max_length=32) gender ...
- [转]Ubuntu使用Wireshark找不到interface的解决方法
Wireshark是一款强大的有图形界面的网络封包分析工具. dumpcap需要root权限才能使用的,以普通用户打开Wireshark,Wireshark当然没有权限使用dumpcap进行截取封包. ...
- Spring-1-E Game(HDU 5011)解题报告及测试数据
Game Time Limit:1000MS Memory Limit:65536KB Description Here is a game for two players. The rule ...
- Jmeter中解决中文乱码问题
在使用JMeter过程中,执行结果响应断言总是提示失败,但是使用英文字母可以成功,表示逻辑和其它地方没有问题,问题可能出在编码上,细看了响应数据和日志,其中中文参数被编码成了类似URL编码格式,如下图 ...