How do i display a hierarchy of the process table in linux?



  • Man page for pstree.

    A useful tool to see process hierarchies. In our opinion, underused. The numbers in the chain show the number of identical process types founds.

    Without any options it provides the current system hierarchy in a concise view.

    $ pstree
    systemd─┬─NetworkManager─┬─dhclient
            │                └─2*[{NetworkManager}]
            ├─2*[agetty]
            ├─auditd───{auditd}
            ├─chronyd
            ├─crond
            ├─dbus-daemon───{dbus-daemon}
            ├─master─┬─pickup
            │        └─qmgr
            ├─polkitd───6*[{polkitd}]
            ├─prometheus───7*[{prometheus}]
            ├─rhnsd
            ├─rsyslogd───2*[{rsyslogd}]
            ├─sshd───sshd───sshd───bash───pstree
            ├─systemd-journal
            ├─systemd-logind
            ├─systemd-udevd
            └─tuned───4*[{tuned}]
    

Log in to reply
 

© Lightnetics 2024