-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 命令参数详解的更多相关文章

  1. (转)Linux curl命令参数详解

    Linux curl命令参数详解 命令:curl在Linux中curl是一个利用URL规则在命令行下工作的文件传输工具,可以说是一款很强大的http命令行工具.它支持文件的上传和下载,是综合传输工具, ...

  2. Linux ls命令参数详解

    -a -- 全部(all).列举目录中的全部文件,包括隐藏文件(.filename).位于这个列表的起首处的 .. 和 . 依次是指父目录和你的当前目录.      -l -- 长(long).列举目 ...

  3. Linux ls命令参数详解 <转>

    下面是一个与 ls 一起使用的一些常用选项的简短列表.请记住,你可以通过阅读 ls 的说明书页(man ls)来获得选项的完整列表. -a – 全部(all).列举目录中的全部文件,包括隐藏文件(.f ...

  4. linux Tar 命令参数详解

    tar命令 . 作用 tar命令是Unix/Linux系统中备份文件的可靠方法,几乎可以工作于任何环境中,它的使用权限是所有用户. . 格式 tar [主选项+辅选项] 文件或目录 eg: tar z ...

  5. Linux curl命令参数详解(6/23)

    linux curl是通过url语法在命令行下上传或下载文件的工具软件,它支持http,https,ftp,ftps,telnet等多种协议,常被用来抓取网页和监控Web服务器状态. 在Linux中c ...

  6. Linux curl命令参数详解--转载

    linux curl是通过url语法在命令行下上传或下载文件的工具软件,它支持http,https,ftp,ftps,telnet等多种协议,常被用来抓取网页和监控Web服务器状态. 一.Linux ...

  7. linux ll 命令参数详解

    linux ll和Linuxls 的区别 可看 http://www.cnblogs.com/jxhd1/p/6548449.html 用法:ls [选项]... [文件]... 列出 FILE 的信 ...

  8. Linux sar命令参数详解

    转载自http://www.chinaz.com/server/2013/0401/297942.shtml sar(System Activity Reporter系统活动情况报告)是目前 Linu ...

  9. Linux curl命令参数详解

    笔者出处:http://www.aiezu.com/system/linux/linux_curl_syntax.html linux curl是通过url语法在命令行下上传或下载文件的工具软件,它支 ...

随机推荐

  1. intel EPT 机制详解

    2016-11-08 在虚拟化环境下,intel CPU在处理器级别加入了对内存虚拟化的支持.即扩展页表EPT,而AMD也有类似的成为NPT.在此之前,内存虚拟化使用的一个重要技术为影子页表. 背景: ...

  2. Mac 升级 OpenSSL

    [转载自 https://blog.csdn.net/focusjava/article/details/51179297 ] [升级Mac的openssl] 终端下 openssl version ...

  3. 模块讲解----json与pickle模块的区别

    1.在生产中,dumps和loads只进行一次,而且要用w把原来的数据冲掉,从而保证每次都是最新的. 2.虚拟机的快照,是每个快照都有一个文件,而不是全都不放在一起. 3.如果想生产好几个序列化,就生 ...

  4. mysql忘记密码怎么办?(转)

    linux下mysql忘记密码处理方法: 1.首先确认服务器出于安全的状态,也就是没有人能够任意地连接MySQL数据库. 因为在重新设置MySQL的root密码的期间,MySQL数据库完全出于没有密码 ...

  5. Java基础知识陷阱(六)

    本文发表于本人博客. 上次说了下equals跟==的问题,今天再来认识一下这个equals()跟hasCode().上次的代码如下: class Person{ public String name; ...

  6. android上传图片、视频、文件,服务端使用wcf接收

    最近一直在搞android上传图片.视频.文件,服务端使用wcf接收,本文对调试中的遇到的问题进行记录. 首先android上传一些小图片是比较容易的一天下来差不多就能调试出来,但是上传一些大的文件时 ...

  7. Myeclipse中is missing required source folder问题的解决

    最近在开发中,有好几次遇到is missing required source folder的问题,但是有些同事机器上却没有该问题,把整个工程删掉,重新从SVN上拿下来,问题依旧存在. 该问题出现后, ...

  8. Ubuntu中安装Flask模块

    pip3 list——python3下安装的***** #如果列表没有flask pip3 install flask即可

  9. 在安装好MySql后忘记root的密码,或者给root添加密码

    一.编辑MySql的配置文件:my.ini(在MySql安装目录下). 打开配置文件,在文件最后一行添加:skip-grant-tables,然后保存退出. 意思为就是在启mysql时不启动grant ...

  10. [转]tomcat之一:指定tomcat运行时JDK版本

    今天在做项目的时候,主管让我在本机上启动多个tomcat且指定不同的jdk环境.因为在企业的项目中个,对于同一个服务器中有多个jdk和tomcat,所以就需要手动指定不同的jdk. 在网上找了很多资料 ...