#ps aux
a:显示所有控制台
u:user
x:将后台执行的进程显示出来
#ps -ef
pid : process
ppid : parenetage
with process information with ps
show process from the current terminal by default
-a include processes on all terminals
-x include processes not attached to terminals
-u prints process owner information
-f prints process parentage
[root@isqlw ~]# ps -ef |less
UID PID PPID C STIME TTY TIME CMD
root 1 0 0 10:44 ? 00:00:01 init [3]
root 2 1 0 10:44 ? 00:00:00 [ksoftirqd/0]
root 3 1 0 10:44 ? 00:00:00 [events/0]
root 4 3 0 10:44 ? 00:00:00 [khelper]
root 5 3 0 10:44 ? 00:00:00 [kacpid]
root 18 3 0 10:44 ? 00:00:00 [kblockd/0]
root 28 3 0 10:44 ? 00:00:00 [pdflush]
root 29 3 0 10:44 ? 00:00:00 [pdflush]
root 31 3 0 10:44 ? 00:00:00 [aio/0]
root 19 1 0 10:44 ? 00:00:00 [khubd]
root 30 1 0 10:44 ? 00:00:00 [kswapd0]
root 105 1 0 10:44 ? 00:00:00 [kseriod]
root 176 1 0 10:44 ? 00:00:00 [scsi_eh_0]
root 190 1 0 10:44 ? 00:00:01 [kjournald]
root 983 1 0 10:44 ? 00:00:00 udevd
root 1331 1 0 10:45 ? 00:00:00 [kjournald]
root 1332 1 0 10:45 ? 00:00:00 [kjournald]
root 1333 1 0 10:45 ? 00:00:00 [kjournald]
当杀死一个进程的父进程时,那么该进程也会被杀死
top使用方法:
h(help)
F排序,根据提示,按一个字母后会提示将根据该字母对应的排序方式排序,回车执行
阅读(771) | 评论(0) | 转发(0) |