LinuxCommandLibrary

pgtree

Unix process hierarchy tree for specific processes

TLDR

Show the process tree for a command name
$ pgtree [process_name]
copy
Show the process tree and send a signal
$ pgtree -s [SIGNAL] [process_name]
copy

SYNOPSIS

pgtree [options] pattern

DESCRIPTION

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.

PARAMETERS

-s SIGNAL

Send a signal to matched processes and their children.

HISTORY

pgtree was created by joknarf and is written in Python.

SEE ALSO

pstree(1), pgrep(1), ps(1), kill(1)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard