pstree 是 Linux 下的一個用於展示進程樹結構的工具,類似於 tree 展示目錄樹一樣,可視化地查看進程的繼承關系。pstree 工具其實是 PSmisc 工具集的成員之一,PSmisc 工具集由 4 個實用的 Linux 進程管理工具(通過 Linux 的 /proc 文件系統實現)組成:
fuser - identifies what processes are using files. killall - kills a process by its name, similar to a pkill found in some other Unices. pstree - Shows currently running processes in a tree format. peekfd - Peek at file descriptors of running processes.
示例: