1. 程式人生 > >Linux命令——pstree、ps

Linux命令——pstree、ps

ps

簡介

ps(processes status)是Unix / Linux上的一個實用程式,用於檢視系統上正在執行的程序的資訊。ps命令預設安裝,即使最小化安裝也會有這個命令。ps命令從/ proc檔案系統中的虛擬檔案中讀取資訊。 ps命令是系統管理的重要工具之一,專門用於程序監視,以幫助程式開發瞭解Linux系統上的最新情況。
請注意,ps生成帶有標題行的輸出,表示每列資訊的含義。

用法演示

顯示當前shell下所有程序

ps不帶任何引數

[[email protected] proc]# ps
   PID TTY          TIME      CMD
  
1309 pts/0 00:00:00 bash 3191 pts/0 00:00:00 ps
View Code

上面這種顯示程序的方式,列數較少,可看的資訊有限。

USER = user owning the process
PID = process ID of the process
%CPU = It is the CPU time used divided by the time the process has been running.
%MEM = ratio of the process’s resident set size to the physical memory on the machine
VSZ 
= virtual memory usage of entire process (in KiB) RSS = resident set size, the non-swapped physical memory that a task has used (in KiB) TTY = controlling tty (terminal) STAT = multi-character process state START = starting time or date of the process TIME = cumulative CPU time COMMAND = command with all its arguments

 

ps -f 或者 -F可以多顯示幾列。其中-F顯示的能更多些

 

顯示Linux系統下所有活躍程序

ps -A 或 ps -e

[[email protected] proc]# ps -e
   PID TTY          TIME CMD
     1 ?        00:00:01 systemd
     2 ?        00:00:00 kthreadd
     3 ?        00:00:00 ksoftirqd/0
     5 ?        00:00:00 kworker/0:0H
     6 ?        00:00:00 kworker/u256:0
     7 ?        00:00:00 migration/0
     8 ?        00:00:00 rcu_bh
     9 ?        00:00:00 rcu_sched
    10 ?        00:00:00 lru-add-drain
    11 ?        00:00:00 watchdog/0
    12 ?        00:00:00 watchdog/1
    13 ?        00:00:00 migration/1
    14 ?        00:00:00 ksoftirqd/1
    16 ?        00:00:00 kworker/1:0H
    17 ?        00:00:00 watchdog/2
    18 ?        00:00:00 migration/2
    19 ?        00:00:00 ksoftirqd/2
    21 ?        00:00:00 kworker/2:0H
    22 ?        00:00:00 watchdog/3
    23 ?        00:00:00 migration/3
    24 ?        00:00:00 ksoftirqd/3
    26 ?        00:00:00 kworker/3:0H
    28 ?        00:00:00 kdevtmpfs
    29 ?        00:00:00 netns
    30 ?        00:00:00 khungtaskd
    31 ?        00:00:00 writeback
    32 ?        00:00:00 kintegrityd
    33 ?        00:00:00 bioset
    34 ?        00:00:00 kblockd
    35 ?        00:00:00 md
    36 ?        00:00:00 edac-poller
    38 ?        00:00:00 kworker/1:1
    43 ?        00:00:00 kswapd0
    44 ?        00:00:00 ksmd
    45 ?        00:00:00 khugepaged
    46 ?        00:00:00 crypto
    54 ?        00:00:00 kthrotld
    56 ?        00:00:00 kmpath_rdacd
    57 ?        00:00:00 kaluad
    58 ?        00:00:00 kpsmoused
    59 ?        00:00:01 kworker/0:2
    60 ?        00:00:00 ipv6_addrconf
    73 ?        00:00:00 deferwq
   105 ?        00:00:00 kauditd
   290 ?        00:00:00 mpt_poll_0
   292 ?        00:00:00 ata_sff
   293 ?        00:00:00 mpt/0
   300 ?        00:00:00 scsi_eh_0
   301 ?        00:00:00 scsi_tmf_0
   302 ?        00:00:00 kworker/u256:2
   303 ?        00:00:00 scsi_eh_1
   304 ?        00:00:00 scsi_tmf_1
   305 ?        00:00:00 scsi_eh_2
   306 ?        00:00:00 scsi_tmf_2
   309 ?        00:00:00 ttm_swap
   310 ?        00:00:00 irq/16-vmwgfx
   322 ?        00:00:00 kworker/3:2
   330 ?        00:00:00 kworker/1:2
   387 ?        00:00:00 kdmflush
   388 ?        00:00:00 bioset
   398 ?        00:00:00 kdmflush
   400 ?        00:00:00 bioset
   413 ?        00:00:00 bioset
   414 ?        00:00:00 xfsalloc
   415 ?        00:00:00 xfs_mru_cache
   416 ?        00:00:00 xfs-buf/dm-0
   417 ?        00:00:00 xfs-data/dm-0
   418 ?        00:00:00 xfs-conv/dm-0
   419 ?        00:00:00 xfs-cil/dm-0
   420 ?        00:00:00 xfs-reclaim/dm-
   421 ?        00:00:00 xfs-log/dm-0
   422 ?        00:00:00 xfs-eofblocks/d
   423 ?        00:00:00 xfsaild/dm-0
   424 ?        00:00:00 kworker/0:1H
   493 ?        00:00:00 systemd-journal
   520 ?        00:00:00 lvmetad
   529 ?        00:00:00 systemd-udevd
   548 ?        00:00:00 nfit
   613 ?        00:00:00 xfs-buf/sda1
   614 ?        00:00:00 xfs-data/sda1
   615 ?        00:00:00 xfs-conv/sda1
   616 ?        00:00:00 xfs-cil/sda1
   617 ?        00:00:00 xfs-reclaim/sda
   618 ?        00:00:00 xfs-log/sda1
   619 ?        00:00:00 xfs-eofblocks/s
   620 ?        00:00:00 xfsaild/sda1
   623 ?        00:00:00 kdmflush
   624 ?        00:00:00 bioset
   631 ?        00:00:00 xfs-buf/dm-2
   632 ?        00:00:00 xfs-data/dm-2
   633 ?        00:00:00 xfs-conv/dm-2
   634 ?        00:00:00 xfs-cil/dm-2
   635 ?        00:00:00 xfs-reclaim/dm-
   636 ?        00:00:00 xfs-log/dm-2
   637 ?        00:00:00 xfs-eofblocks/d
   638 ?        00:00:00 xfsaild/dm-2
   660 ?        00:00:00 auditd
   683 ?        00:00:00 dbus-daemon
   686 ?        00:00:00 polkitd
   688 ?        00:00:00 irqbalance
   689 ?        00:00:00 systemd-logind
   693 ?        00:00:00 crond
   698 ?        00:00:00 login
   705 ?        00:00:00 firewalld
   707 ?        00:00:00 NetworkManager
   754 ?        00:00:00 kworker/2:1H
   826 ?        00:00:00 kworker/3:1H
   838 ?        00:00:00 dhclient
  1021 ?        00:00:00 tuned
  1022 ?        00:00:00 sshd
  1023 ?        00:00:00 rsyslogd
  1170 ?        00:00:00 master
  1176 ?        00:00:00 pickup
  1177 ?        00:00:00 qmgr
  1284 tty1     00:00:00 bash
  1299 ?        00:00:00 kworker/1:1H
  1305 ?        00:00:00 sshd
  1309 pts/0    00:00:00 bash
  1455 ?        00:00:00 kworker/3:3
  1477 ?        00:00:00 memcached
  2198 ?        00:00:00 kworker/2:0
  2321 ?        00:00:00 kworker/0:0
  2894 ?        00:00:00 kworker/2:2
  3163 ?        00:00:00 kworker/2:1
  3331 ?        00:00:00 kworker/0:1
  3346 pts/0    00:00:00 ps
[[email protected] proc]# ps -A
   PID TTY          TIME CMD
     1 ?        00:00:01 systemd
     2 ?        00:00:00 kthreadd
     3 ?        00:00:00 ksoftirqd/0
     5 ?        00:00:00 kworker/0:0H
     6 ?        00:00:00 kworker/u256:0
     7 ?        00:00:00 migration/0
     8 ?        00:00:00 rcu_bh
     9 ?        00:00:00 rcu_sched
    10 ?        00:00:00 lru-add-drain
    11 ?        00:00:00 watchdog/0
    12 ?        00:00:00 watchdog/1
    13 ?        00:00:00 migration/1
    14 ?        00:00:00 ksoftirqd/1
    16 ?        00:00:00 kworker/1:0H
    17 ?        00:00:00 watchdog/2
    18 ?        00:00:00 migration/2
    19 ?        00:00:00 ksoftirqd/2
    21 ?        00:00:00 kworker/2:0H
    22 ?        00:00:00 watchdog/3
    23 ?        00:00:00 migration/3
    24 ?        00:00:00 ksoftirqd/3
    26 ?        00:00:00 kworker/3:0H
    28 ?        00:00:00 kdevtmpfs
    29 ?        00:00:00 netns
    30 ?        00:00:00 khungtaskd
    31 ?        00:00:00 writeback
    32 ?        00:00:00 kintegrityd
    33 ?        00:00:00 bioset
    34 ?        00:00:00 kblockd
    35 ?        00:00:00 md
    36 ?        00:00:00 edac-poller
    38 ?        00:00:00 kworker/1:1
    43 ?        00:00:00 kswapd0
    44 ?        00:00:00 ksmd
    45 ?        00:00:00 khugepaged
    46 ?        00:00:00 crypto
    54 ?        00:00:00 kthrotld
    56 ?        00:00:00 kmpath_rdacd
    57 ?        00:00:00 kaluad
    58 ?        00:00:00 kpsmoused
    59 ?        00:00:01 kworker/0:2
    60 ?        00:00:00 ipv6_addrconf
    73 ?        00:00:00 deferwq
   105 ?        00:00:00 kauditd
   290 ?        00:00:00 mpt_poll_0
   292 ?        00:00:00 ata_sff
   293 ?        00:00:00 mpt/0
   300 ?        00:00:00 scsi_eh_0
   301 ?        00:00:00 scsi_tmf_0
   302 ?        00:00:00 kworker/u256:2
   303 ?        00:00:00 scsi_eh_1
   304 ?        00:00:00 scsi_tmf_1
   305 ?        00:00:00 scsi_eh_2
   306 ?        00:00:00 scsi_tmf_2
   309 ?        00:00:00 ttm_swap
   310 ?        00:00:00 irq/16-vmwgfx
   322 ?        00:00:00 kworker/3:2
   330 ?        00:00:00 kworker/1:2
   387 ?        00:00:00 kdmflush
   388 ?        00:00:00 bioset
   398 ?        00:00:00 kdmflush
   400 ?        00:00:00 bioset
   413 ?        00:00:00 bioset
   414 ?        00:00:00 xfsalloc
   415 ?        00:00:00 xfs_mru_cache
   416 ?        00:00:00 xfs-buf/dm-0
   417 ?        00:00:00 xfs-data/dm-0
   418 ?        00:00:00 xfs-conv/dm-0
   419 ?        00:00:00 xfs-cil/dm-0
   420 ?        00:00:00 xfs-reclaim/dm-
   421 ?        00:00:00 xfs-log/dm-0
   422 ?        00:00:00 xfs-eofblocks/d
   423 ?        00:00:00 xfsaild/dm-0
   424 ?        00:00:00 kworker/0:1H
   493 ?        00:00:00 systemd-journal
   520 ?        00:00:00 lvmetad
   529 ?        00:00:00 systemd-udevd
   548 ?        00:00:00 nfit
   613 ?        00:00:00 xfs-buf/sda1
   614 ?        00:00:00 xfs-data/sda1
   615 ?        00:00:00 xfs-conv/sda1
   616 ?        00:00:00 xfs-cil/sda1
   617 ?        00:00:00 xfs-reclaim/sda
   618 ?        00:00:00 xfs-log/sda1
   619 ?        00:00:00 xfs-eofblocks/s
   620 ?        00:00:00 xfsaild/sda1
   623 ?        00:00:00 kdmflush
   624 ?        00:00:00 bioset
   631 ?        00:00:00 xfs-buf/dm-2
   632 ?        00:00:00 xfs-data/dm-2
   633 ?        00:00:00 xfs-conv/dm-2
   634 ?        00:00:00 xfs-cil/dm-2
   635 ?        00:00:00 xfs-reclaim/dm-
   636 ?        00:00:00 xfs-log/dm-2
   637 ?        00:00:00 xfs-eofblocks/d
   638 ?        00:00:00 xfsaild/dm-2
   660 ?        00:00:00 auditd
   683 ?        00:00:00 dbus-daemon
   686 ?        00:00:00 polkitd
   688 ?        00:00:00 irqbalance
   689 ?        00:00:00 systemd-logind
   693 ?        00:00:00 crond
   698 ?        00:00:00 login
   705 ?        00:00:00 firewalld
   707 ?        00:00:00 NetworkManager
   754 ?        00:00:00 kworker/2:1H
   826 ?        00:00:00 kworker/3:1H
   838 ?        00:00:00 dhclient
  1021 ?        00:00:00 tuned
  1022 ?        00:00:00 sshd
  1023 ?        00:00:00 rsyslogd
  1170 ?        00:00:00 master
  1176 ?        00:00:00 pickup
  1177 ?        00:00:00 qmgr
  1284 tty1     00:00:00 bash
  1299 ?        00:00:00 kworker/1:1H
  1305 ?        00:00:00 sshd
  1309 pts/0    00:00:00 bash
  1455 ?        00:00:00 kworker/3:3
  1477 ?        00:00:00 memcached
  2198 ?        00:00:00 kworker/2:0
  2321 ?        00:00:00 kworker/0:0
  2894 ?        00:00:00 kworker/2:2
  3163 ?        00:00:00 kworker/2:1
  3331 ?        00:00:00 kworker/0:1
  3350 pts/0    00:00:00 ps
View Code

BSD風格顯示程序

ps au 或者 ps aux

2這有少許差別

a = show processes for all users
u = display the process's user/owner
x = also show you all processes, not just ones attached to a terminal. This will include processes such as services like crond, upowerd, etc.

從歷史上看,BSD和AT&T開發了不相容的ps版本。 引數選項前沒有-的是BSD風格,而選項帶有-的是AT&T Unix風格。 最重要的是,Linux開發了一個支援這兩種樣式的版本,然後添加了第三種樣式,其中的選項以--開頭。

[[email protected] proc]# ps au
USER        PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
root       1284  0.0  0.0 115432  1984 tty1     Ss+  09:02   0:00 -bash
root       1309  0.0  0.0 115436  2072 pts/0    Ss   09:04   0:00 -bash
root       4191  0.0  0.0 155324  1856 pts/0    R+   10:08   0:00 ps au
[[email protected] proc]# ps aux
USER        PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
root          1  0.0  0.1 193468  6596 ?        Ss   09:02   0:01 /usr/lib/systemd/systemd --switched-root --syste
root          2  0.0  0.0      0     0 ?        S    09:02   0:00 [kthreadd]
root          3  0.0  0.0      0     0 ?        S    09:02   0:00 [ksoftirqd/0]
root          5  0.0  0.0      0     0 ?        S<   09:02   0:00 [kworker/0:0H]
root          6  0.0  0.0      0     0 ?        S    09:02   0:00 [kworker/u256:0]
root          7  0.0  0.0      0     0 ?        S    09:02   0:00 [migration/0]
root          8  0.0  0.0      0     0 ?        S    09:02   0:00 [rcu_bh]
root          9  0.0  0.0      0     0 ?        S    09:02   0:00 [rcu_sched]
root         10  0.0  0.0      0     0 ?        S<   09:02   0:00 [lru-add-drain]
root         11  0.0  0.0      0     0 ?        S    09:02   0:00 [watchdog/0]
root         12  0.0  0.0      0     0 ?        S    09:02   0:00 [watchdog/1]
root         13  0.0  0.0      0     0 ?        S    09:02   0:00 [migration/1]
root         14  0.0  0.0      0     0 ?        S    09:02   0:00 [ksoftirqd/1]
root         16  0.0  0.0      0     0 ?        S<   09:02   0:00 [kworker/1:0H]
root         17  0.0  0.0      0     0 ?        S    09:02   0:00 [watchdog/2]
root         18  0.0  0.0      0     0 ?        S    09:02   0:00 [migration/2]
root         19  0.0  0.0      0     0 ?        S    09:02   0:00 [ksoftirqd/2]
root         21  0.0  0.0      0     0 ?        S<   09:02   0:00 [kworker/2:0H]
root         22  0.0  0.0      0     0 ?        S    09:02   0:00 [watchdog/3]
root         23  0.0  0.0      0     0 ?        S    09:02   0:00 [migration/3]
root         24  0.0  0.0      0     0 ?        S    09:02   0:00 [ksoftirqd/3]
root         26  0.0  0.0      0     0 ?        S<   09:02   0:00 [kworker/3:0H]
root         28  0.0  0.0      0     0 ?        S    09:02   0:00 [kdevtmpfs]
root         29  0.0  0.0      0     0 ?        S<   09:02   0:00 [netns]
root         30  0.0  0.0      0     0 ?        S    09:02   0:00 [khungtaskd]
root         31  0.0  0.0      0     0 ?        S<   09:02   0:00 [writeback]
root         32  0.0  0.0      0     0 ?        S<   09:02   0:00 [kintegrityd]
root         33  0.0  0.0      0     0 ?        S<   09:02   0:00 [bioset]
root         34  0.0  0.0      0     0 ?        S<   09:02   0:00 [kblockd]
root         35  0.0  0.0      0     0 ?        S<   09:02   0:00 [md]
root         36  0.0  0.0      0     0 ?        S<   09:02   0:00 [edac-poller]
root         38  0.0  0.0      0     0 ?        R    09:02   0:00 [kworker/1:1]
root         43  0.0  0.0      0     0 ?        S    09:02   0:00 [kswapd0]
root         44  0.0  0.0      0     0 ?        SN   09:02   0:00 [ksmd]
root         45  0.0  0.0      0     0 ?        SN   09:02   0:00 [khugepaged]
root         46  0.0  0.0      0     0 ?        S<   09:02   0:00 [crypto]
root         54  0.0  0.0      0     0 ?        S<   09:02   0:00 [kthrotld]
root         56  0.0  0.0      0     0 ?        S<   09:02   0:00 [kmpath_rdacd]
root         57  0.0  0.0      0     0 ?        S<   09:02   0:00 [kaluad]
root         58  0.0  0.0      0     0 ?        S<   09:02   0:00 [kpsmoused]
root         59  0.0  0.0      0     0 ?        S    09:02   0:01 [kworker/0:2]
root         60  0.0  0.0      0     0 ?        S<   09:02   0:00 [ipv6_addrconf]
root         73  0.0  0.0      0     0 ?        S<   09:02   0:00 [deferwq]
root        105  0.0  0.0      0     0 ?        S    09:02   0:00 [kauditd]
root        290  0.0  0.0      0     0 ?        S<   09:02   0:00 [mpt_poll_0]
root        292  0.0  0.0      0     0 ?        S<   09:02   0:00 [ata_sff]
root        293  0.0  0.0      0     0 ?        S<   09:02   0:00 [mpt/0]
root        300  0.0  0.0      0     0 ?        S    09:02   0:00 [scsi_eh_0]
root        301  0.0  0.0      0     0 ?        S<   09:02   0:00 [scsi_tmf_0]
root        302  0.0  0.0      0     0 ?        S    09:02   0:00 [kworker/u256:2]
root        303  0.0  0.0      0     0 ?        S    09:02   0:00 [scsi_eh_1]
root        304  0.0  0.0      0     0 ?        S<   09:02   0:00 [scsi_tmf_1]
root        305  0.0  0.0      0     0 ?        S    09:02   0:00 [scsi_eh_2]
root        306  0.0  0.0      0     0 ?        S<   09:02   0:00 [scsi_tmf_2]
root        309  0.0  0.0      0     0 ?        S<   09:02   0:00 [ttm_swap]
root        310  0.0  0.0      0     0 ?        S    09:02   0:00 [irq/16-vmwgfx]
root        322  0.0  0.0      0     0 ?        S    09:02   0:00 [kworker/3:2]
root        330  0.0  0.0      0     0 ?        S    09:02   0:00 [kworker/1:2]
root        387  0.0  0.0      0     0 ?        S<   09:02   0:00 [kdmflush]
root        388  0.0  0.0      0     0 ?        S<   09:02   0:00 [bioset]
root        398  0.0  0.0      0     0 ?        S<   09:02   0:00 [kdmflush]
root        400  0.0  0.0      0     0 ?        S<   09:02   0:00 [bioset]
root        413  0.0  0.0      0     0 ?        S<   09:02   0:00 [bioset]
root        414  0.0  0.0      0     0 ?        S<   09:02   0:00 [xfsalloc]
root        415  0.0  0.0      0     0 ?        S<   09:02   0:00 [xfs_mru_cache]
root        416  0.0  0.0      0     0 ?        S<   09:02   0:00 [xfs-buf/dm-0]
root        417  0.0  0.0      0     0 ?        S<   09:02   0:00 [xfs-data/dm-0]
root        418  0.0  0.0      0     0 ?        S<   09:02   0:00 [xfs-conv/dm-0]
root        419  0.0  0.0      0     0 ?        S<   09:02   0:00 [xfs-cil/dm-0]
root        420  0.0  0.0      0     0 ?        S<   09:02   0:00 [xfs-reclaim/dm-]
root        421  0.0  0.0      0     0 ?        S<   09:02   0:00 [xfs-log/dm-0]
root        422  0.0  0.0      0     0 ?        S<   09:02   0:00 [xfs-eofblocks/d]
root        423  0.0  0.0      0     0 ?        S    09:02   0:00 [xfsaild/dm-0]
root        424  0.0  0.0      0     0 ?        S<   09:02   0:00 [kworker/0:1H]
root        493  0.0  0.0  39076  3224 ?        Ss   09:02   0:00 /usr/lib/systemd/systemd-journald
root        520  0.0  0.1 127256  4060 ?        Ss   09:02   0:00 /usr/sbin/lvmetad -f
root        529  0.0  0.1  47568  5232 ?        Ss   09:02   0:00 /usr/lib/systemd/systemd-udevd
root        548  0.0  0.0      0     0 ?        S<   09:02   0:00 [nfit]
root        613  0.0  0.0      0     0 ?        S<   09:02   0:00 [xfs-buf/sda1]
root        614  0.0  0.0      0     0 ?        S<   09:02   0:00 [xfs-data/sda1]
root        615  0.0  0.0      0     0 ?        S<   09:02   0:00 [xfs-conv/sda1]
root        616  0.0  0.0      0     0 ?        S<   09:02   0:00 [xfs-cil/sda1]
root        617  0.0  0.0      0     0 ?        S<   09:02   0:00 [xfs-reclaim/sda]
root        618  0.0  0.0      0     0 ?        S<   09:02   0:00 [xfs-log/sda1]
root        619  0.0  0.0      0     0 ?        S<   09:02   0:00 [xfs-eofblocks/s]
root        620  0.0  0.0      0     0 ?        S    09:02   0:00 [xfsaild/sda1]
root        623  0.0  0.0      0     0 ?        S<   09:02   0:00 [kdmflush]
root        624  0.0  0.0      0     0 ?        S<   09:02   0:00 [bioset]
root        631  0.0  0.0      0     0 ?        S<   09:02   0:00 [xfs-buf/dm-2]
root        632  0.0  0.0      0     0 ?        S<   09:02   0:00 [xfs-data/dm-2]
root        633  0.0  0.0      0     0 ?        S<   09:02   0:00 [xfs-conv/dm-2]
root        634  0.0  0.0      0     0 ?        S<   09:02   0:00 [xfs-cil/dm-2]
root        635  0.0  0.0      0     0 ?        S<   09:02   0:00 [xfs-reclaim/dm-]
root        636  0.0  0.0      0     0 ?        S<   09:02   0:00 [xfs-log/dm-2]
root        637  0.0  0.0      0     0 ?        S<   09:02   0:00 [xfs-eofblocks/d]
root        638  0.0  0.0      0     0 ?        S    09:02   0:00 [xfsaild/dm-2]
root        660  0.0  0.0  55508   896 ?        S<sl 09:02   0:00 /sbin/auditd
dbus        683  0.0  0.0  66432  2592 ?        Ssl  09:02   0:00 /usr/bin/dbus-daemon --system --address=systemd:
polkitd     686  0.0  0.3 539212 14932 ?        Ssl  09:02   0:00 /usr/lib/polkit-1/polkitd --no-debug
root        688  0.0  0.0  21668  1280 ?        Ss   09:02   0:00 /usr/sbin/irqbalance --foreground
root        689  0.0  0.0  26424  1796 ?        Ss   09:02   0:00 /usr/lib/systemd/systemd-logind
root        693  0.0  0.0 126284  1684 ?        Ss   09:02   0:00 /usr/sbin/crond -n
root        698  0.0  0.0  96520  2436 ?        Ss   09:02   0:00 login -- root
root        705  0.0  0.7 357852 28896 ?        Ssl  09:02   0:00 /usr/bin/python -Es /usr/sbin/firewalld --nofork
root        707  0.0  0.2 703892 11360 ?        Ssl  09:02   0:00 /usr/sbin/NetworkManager --no-daemon
root        754  0.0  0.0      0     0 ?        S<   09:02   0:00 [kworker/2:1H]
root        826  0.0  0.0      0     0 ?        S<   09:02   0:00 [kworker/3:1H]
root        838  0.0  0.1 107380  5444 ?        S    09:02   0:00 /sbin/dhclient -d -q -sf /usr/libexec/nm-dhcp-he
root       1021  0.0  0.4 573856 16996 ?        Ssl  09:02   0:00 /usr/bin/python -Es /usr/sbin/tuned -l -P
root       1022  0.0  0.1 112796  4296 ?        Ss   09:02   0:00 /usr/sbin/sshd -D
root       1023  0.0  0.2 216376  8708 ?        Ssl  09:02   0:00 /usr/sbin/rsyslogd -n
root       1170  0.0  0.0  89620  2060 ?        Ss   09:02   0:00 /usr/libexec/postfix/master -w
postfix    1176  0.0  0.1  89724  4048 ?        S    09:02   0:00 pickup -l -t unix -u
postfix    1177  0.0  0.1  89792  4076 ?        S    09:02   0:00 qmgr -l -t unix -u
root       1284  0.0  0.0 115432  1984 tty1     Ss+  09:02   0:00 -bash
root       1299  0.0  0.0      0     0 ?        S<   09:02   0:00 [kworker/1:1H]
root       1305  0.0  0.1 158800  5536 ?        Ds   09:04   0:00 sshd: [email protected]/0
root       1309  0.0  0.0 115436  2072 pts/0    Ss   09:04   0:00 -bash
root       1455  0.0  0.0      0     0 ?        S    09:15   0:00 [kworker/3:3]
root       1477  0.0  0.0 344080  1064 ?        Ssl  09:15   0:00 /usr/bin/memcached -d -u root
root       3163  0.0  0.0      0     0 ?        S    09:49   0:00 [kworker/2:1]
root       3331  0.0  0.0      0     0 ?        S    09:52   0:00 [kworker/0:1]
root       3611  0.0  0.0      0     0 ?        S    09:57   0:00 [kworker/0:0]
root       3701  0.0  0.0      0     0 ?        S    09:59   0:00 [kworker/2:0]
root       3808  0.0  0.0 123256   760 ?        Ss   10:01   0:00 /usr/sbin/anacron -s
root       4194  0.0  0.0 155324  1864 pts/0    R+   10:08   0:00 ps aux
View Code