List running processes in better way!

Home Forums Linux Questions & Answers.. Kernel/Performance List running processes in better way!

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #2807 Reply
    Humble
    Keymaster

    Yep, “ps” is one of the command which everyone use and cant forget when operating on linux system. “ps” command has lots of switches which is very helpful depending on the situation. There are many, but I am starting with one of the them which is nothing but “axf” , to know more about these switches please refer “man ps” .

    Here is how beautilful print it has!

    [hchiramm@humbles-lap ]$ ps axf
    PID TTY STAT TIME COMMAND
    2 ? S 0:00 [kthreadd]
    3 ? S 0:11 \_ [ksoftirqd/0]
    5 ? S< 0:00 \_ [kworker/0:0H]
    7 ? S 1:42 \_ [rcu_sched]
    8 ? S 0:00 \_ [rcu_bh]
    9 ? S 0:00 \_ [migration/0]
    10 ? S 0:02 \_ [watchdog/0]
    11 ? S 0:02 \_ [watchdog/1]
    12 ? S 0:00 \_ [migration/1]
    13 ? S 0:07 \_ [ksoftirqd/1]
    15 ? S< 0:00 \_ [kworker/1:0H]
    16 ? S 0:02 \_ [watchdog/2]
    17 ? S 0:00 \_ [migration/2]
    18 ? S 0:08 \_ [ksoftirqd/2]
    20 ? S< 0:00 \_ [kworker/2:0H]
    21 ? S 0:02 \_ [watchdog/3]
    22 ? S 0:00 \_ [migration/3]
    23 ? S 0:07 \_ [ksoftirqd/3]
    25 ? S< 0:00 \_ [kworker/3:0H]
    26 ? S< 0:00 \_ [khelper]
    27 ? S 0:00 \_ [kdevtmpfs]
    28 ? S< 0:00 \_ [netns]
    29 ? S< 0:00 \_ [writeback]
    30 ? SN 0:00 \_ [ksmd]
    31 ? SN 0:00 \_ [khugepaged]
    32 ? S< 0:00 \_ [kintegrityd]
    33 ? S< 0:00 \_ [bioset]
    34 ? S< 0:00 \_ [crypto]
    35 ? S< 0:00 \_ [kblockd]
    36 ? S< 0:00 \_ [ata_sff]
    37 ? S 0:00 \_ [khubd]
    38 ? S< 0:00 \_ [md]
    68 ? S 0:25 \_ [kswapd0]
    69 ? S 0:03 \_ [fsnotify_mark]
    79 ? S< 0:00 \_ [kthrotld]
    80 ? S 0:00 \_ [scsi_eh_0]
    81 ? S< 0:00 \_ [scsi_tmf_0]
    82 ? S 0:00 \_ [scsi_eh_1]
    83 ? S< 0:00 \_ [scsi_tmf_1]
    84 ? S 0:00 \_ [scsi_eh_2]
    85 ? S< 0:00 \_ [scsi_tmf_2]
    86 ? S 0:00 \_ [scsi_eh_3]
    87 ? S< 0:00 \_ [scsi_tmf_3]
    88 ? S 0:00 \_ [scsi_eh_4]
    89 ? S< 0:00 \_ [scsi_tmf_4]
    90 ? S 0:00 \_ [scsi_eh_5]
    91 ? S< 0:00 \_ [scsi_tmf_5]
    96 ? S< 0:00 \_ [kpsmoused]
    97 ? S< 0:00 \_ [dm_bufio_cache]
    98 ? S< 0:00 \_ [ipv6_addrconf]
    100 ? S< 0:00 \_ [deferwq]
    110 ? S 0:00 \_ [kauditd]
    112 ? S< 0:00 \_ [iprt]
    174 ? S< 0:00 \_ [kworker/1:1H]
    175 ? S< 0:00 \_ [kworker/0:1H]
    176 ? S 0:08 \_ [jbd2/sda10-8]
    177 ? S< 0:00 \_ [ext4-rsv-conver]
    178 ? S< 0:00 \_ [kworker/2:1H]
    251 ? S< 0:00 \_ [rpciod]
    361 ? S< 0:00 \_ [cfg80211]
    367 ? S 32:00 \_ [irq/45-iwlwifi]
    374 ? S< 0:00 \_ [hd-audio0]
    394 ? S< 0:00 \_ [kvm-irqfd-clean]
    398 ? S< 0:00 \_ [iwlwifi]
    452 ? S 0:34 \_ [jbd2/sda9-8]
    453 ? S< 0:00 \_ [ext4-rsv-conver]
    458 ? S 0:00 \_ [jbd2/sda8-8]
    459 ? S< 0:00 \_ [ext4-rsv-conver]
    484 ? S< 0:00 \_ [kworker/3:1H]
    653 ? S< 0:00 \_ [krfcommd]
    1304 ? S< 0:00 \_ [loop0]
    1306 ? S< 0:00 \_ [nfsd4]
    1307 ? S< 0:00 \_ [nfsd4_callbacks]
    1308 ? S 0:00 \_ [lockd]
    1311 ? S 0:00 \_ [nfsd]
    1312 ? S 0:00 \_ [nfsd]
    1313 ? S 0:00 \_ [nfsd]
    1314 ? S 0:00 \_ [nfsd]
    1315 ? S 0:00 \_ [nfsd]
    1316 ? S 0:00 \_ [nfsd]
    1317 ? S 0:00 \_ [nfsd]
    1318 ? S 0:00 \_ [nfsd]
    32420 ? S 0:00 \_ [irq/43-mei_me]
    32505 ? S< 0:00 \_ [kworker/u17:0]
    32507 ? S< 0:00 \_ [hci0]
    32508 ? S< 0:00 \_ [hci0]
    32509 ? S< 0:00 \_ [kworker/u17:1]
    20218 ? S 0:01 \_ [kworker/u16:1]
    20537 ? S 0:00 \_ [kworker/1:0]
    20716 ? S 0:00 \_ [kworker/2:0]
    20972 ? S 0:00 \_ [kworker/2:2]
    20993 ? S 0:00 \_ [kworker/u16:2]
    21221 ? S 0:00 \_ [kworker/1:2]
    21287 ? S 0:00 \_ [kworker/3:0]
    21316 ? S 0:00 \_ [kworker/0:0]
    21365 ? S 0:00 \_ [kworker/u16:0]
    21464 ? S 0:00 \_ [kworker/0:2]
    21468 ? S 0:00 \_ [kworker/3:1]
    21478 ? S 0:00 \_ [kworker/1:1]
    21479 ? S 0:00 \_ [kworker/2:1]
    1 ? Ss 0:19 /usr/lib/systemd/systemd –switched-root –system –deserialize 20
    219 ? Ss 4:39 /usr/lib/systemd/systemd-journald
    260 ? Ss 0:01 /usr/lib/systemd/systemd-udevd
    471 ? S<sl 0:01 /sbin/auditd -n
    482 ? S<sl 0:02 \_ /sbin/audispd
    485 ? S< 0:00 \_ /usr/sbin/sedispatch
    490 ? SNs 0:00 /usr/sbin/alsactl -s -n 19 -c -E ALSA_CONFIG_PATH=/etc/alsa/alsactl.conf –initfile=/lib/alsa/init/00main rdaemon
    ………..
    564 ? Ssl 0:00 /usr/sbin/gdm
    632 ? Sl 0:00 \_ /usr/libexec/gdm-simple-slave –display-id /org/gnome/DisplayManager/Displays/_0
    668 tty1 Ss+ 684:57 \_ /usr/bin/Xorg :0 -background none -verbose -auth /run/gdm/auth-for-gdm-OLdRzv/database -seat seat0 -nolisten tcp vt
    1867 ? Dl 0:02 \_ gdm-session-worker [pam/gdm-password]
    1928 ? Ssl 0:06 \_ gnome-session
    2133 ? Sl 0:56 \_ /usr/libexec/gnome-settings-daemon
    2189 ? SLl 207:59 \_ /usr/bin/gnome-shell
    5164 ? Sl 17:09 | \_ xchat
    23010 ? Rl 1121:08 | \_ /usr/lib64/firefox/firefox
    28721 ? Sl 123:22 | \_ /usr/lib64/firefox/plugin-container /usr/lib64/flash-plugin/libflashplayer.so -greomni /usr/lib64/f
    2238 ? Sl 0:44 \_ /usr/libexec/tracker-store
    2240 ? Sl 0:00 \_ /usr/bin/seapplet
    2243 ? Sl 0:00 \_ abrt-applet
    2276 ? Sl 123:12 \_ nm-applet
    2277 ? Sl 0:19 \_ /usr/libexec/deja-dup/deja-dup-monitor
    2280 ? Sl 0:02 \_ /usr/libexec/evolution/3.8/evolution-alarm-notify

    Isnt it really useful ?

Viewing 1 post (of 1 total)
Reply To: List running processes in better way!
Your information: