← 返回命令列表

Linux command

pgtree 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Show the process tree for a command name

pgtree [process_name]

Show the process tree and send a signal

pgtree -s [SIGNAL] [process_name]

说明

pgtree is a Unix process hierarchy tree display that combines pgrep and pstree functionality. It finds processes matching a pattern and displays their full process tree, and can send signals to matched processes and all their children. It works out of the box on any Unix system using the default OS Python installation.

参数

-s _SIGNAL_
Send a signal to matched processes and their children.

FAQ

What is the pgtree command used for?

pgtree is a Unix process hierarchy tree display that combines pgrep and pstree functionality. It finds processes matching a pattern and displays their full process tree, and can send signals to matched processes and all their children. It works out of the box on any Unix system using the default OS Python installation.

How do I run a basic pgtree example?

Run `pgtree [process_name]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -s _SIGNAL_ do in pgtree?

Send a signal to matched processes and their children.