pstree

From Wikipedia, the free encyclopedia

This is an old revision of this page, as edited by Ghettoblaster (talk | contribs) at 10:46, 29 July 2018 (→‎See also). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

pstree output in FreeBSD

pstree is a Linux command that shows the running processes as a tree. It is used as a more visual alternative to the ps command. The root of the tree is either init or the process with the given pid. It can also be installed in other Unix systems.

In BSD systems, a similar output is created using the ps command with option "-d".

Examples

pstree pid

user@host ~$ pstree 1066
rsyslogd─┬─{in:imjournal}
         └─{rs:main Q:Reg}

pstree username

user@host ~# pstree username
dbus-daemon───{dbus-daemon}

dbus-launch

bash───firefox─┬─6*[{Analysis Helper}]
               ├─{BgHangManager}
               ├─{Cache2 I/O}
               ├─{Compositor}
               ├─{GMPThread}
               ├─{Gecko_IOThread}
               ├─{Hang Monitor}
               ├─{ImageBridgeChil}
               ├─{ImageIO}
               ├─{JS Watchdog}
               ├─{Link Monitor}
               ├─{Socket Thread}
               ├─{SoftwareVsyncTh}
               ├─{StreamTrans #1}
               ├─{Timer}
               └─{gmain}

See also

External links