pstree
Appearance
From Wikipedia, the free encyclopedia
Unix command that shows the running processes as a tree
This article needs additional citations for verification . Please help improve this article by adding citations to reliable sources. Unsourced material may be challenged and removed.
Find sources: "Pstree" – news · newspapers · books · scholar · JSTOR (September 2012) (Learn how and when to remove this message)
Find sources: "Pstree" – news · newspapers · books · scholar · JSTOR (September 2012) (Learn how and when to remove this message)
pstree is a Linux command that shows the running processes as a tree.[1] [2] [3] 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 ps -d, in Linux ps axjf[4] produces similar output.
Examples
[edit ]pstree pid
user@host ~$ pstree1066 rsyslogd─┬─{in:imjournal} └─{rs:main Q:Reg}
pstree username
user@host ~# pstreeusername 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
[edit ]References
[edit ]- ^ "Pstree Command in Linux". linuxize.com. 2019年10月23日. Retrieved 2024年12月27日.
- ^ James, Hayden (2023年12月11日). "pstree command in Linux with examples". LinuxBlog.io. Retrieved 2024年12月27日.
- ^ "pstree Command in Linux with Examples". GeeksforGeeks. 2020年05月20日. Retrieved 2024年12月27日.
- ^ "Ps(1): Report snapshot of current processes - Linux man page".
External links
[edit ]- The psmisc package
- The pstree Command by The Linux Information Project (LINFO)
- Gnome Process Tree
- The portable version of pstree on GitHub
pstree(1)– Linux General Commands Manual from ManKier.comptree(1)– Solaris 11.4 User Commands Reference Manual
Retrieved from "https://en.wikipedia.org/w/index.php?title=Pstree&oldid=1305273336"