Linux 进程树查看工具 pstree

  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.

示例:

猜你喜欢

转载自www.cnblogs.com/yyxianren/p/11165414.html