ps

1、 ps -ef | more

 1 zh7152106@zh7152106:~/test$ ps -ef
 2 UID         PID   PPID  C STIME TTY          TIME CMD
 3 root          1      0  0 Aug28 ?        00:00:45 /sbin/init
 4 root          2      0  0 Aug28 ?        00:00:00 [kthreadd]
 5 root          3      2  0 Aug28 ?        00:00:00 [ksoftirqd/0]
 6 root          5      2  0 Aug28 ?        00:00:00 [kworker/0:0H]
 7 root          7      2  0 Aug28 ?        00:00:00 [rcu_sched]
 8 root          8      2  0 Aug28 ?        00:00:00 [rcu_bh]
 9 root          9      2  0 Aug28 ?        00:00:00 [migration/0]
10 root         10      2  0 Aug28 ?        00:00:00 [watchdog/0]
11 root         11      2  0 Aug28 ?        00:00:00 [kdevtmpfs]
12 root         12      2  0 Aug28 ?        00:00:00 [netns]
13 root         13      2  0 Aug28 ?        00:00:00 [perf]
14 root         14      2  0 Aug28 ?        00:00:00 [khungtaskd]
15 root         15      2  0 Aug28 ?        00:00:00 [writeback]

 

 2、 ps aux

 1 zh7152106@zh7152106:~/test$ ps aux
 2 USER        PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
 3 root          1  0.3  0.2  38000  6016 ?        Ss   Aug28   0:45 /sbin/init
 4 root          2  0.0  0.0      0     0 ?        S    Aug28   0:00 [kthreadd]
 5 root          3  0.0  0.0      0     0 ?        S    Aug28   0:00 [ksoftirqd/0]
 6 root          5  0.0  0.0      0     0 ?        S<   Aug28   0:00 [kworker/0:0H]
 7 root          7  0.0  0.0      0     0 ?        S    Aug28   0:00 [rcu_sched]
 8 root          8  0.0  0.0      0     0 ?        S    Aug28   0:00 [rcu_bh]
 9 root          9  0.0  0.0      0     0 ?        S    Aug28   0:00 [migration/0]
10 root         10  0.0  0.0      0     0 ?        S    Aug28   0:00 [watchdog/0]
11 root         11  0.0  0.0      0     0 ?        S    Aug28   0:00 [kdevtmpfs]
12 root         12  0.0  0.0      0     0 ?        S<   Aug28   0:00 [netns]
13 root         13  0.0  0.0      0     0 ?        S<   Aug28   0:00 [perf]

 

posted @ 2020-08-29 00:22  浊烽  阅读(111)  评论(0)    收藏  举报