Linux "pstree" Command Line Options and Examples
display a tree of processes

pstree shows running processes as a tree. The tree is rooted at either pid or init if pid is omitted. If a user name is specified, all process trees rooted at processes owned by that user are shown.


pstree [-a, --arguments] [-c, --compact] [-h, --highlight-all, -Hpid, --highlight-pid pid] [-g] --show-pgids]
[-l, --long] [-n, --numeric-sort] [-N, --ns-sortns [-p, --show-pids] [-s, --show-parents] [-S, --ns-changes]
[-t, --thread-names] [-T, --hide-threads] [-u, --uid-changes] [-Z, --security-context]
[-A, --ascii, -G, --vt100, -U, --unicode] [pid, user]
pstree -V, --version

Command Line Options:

Use ASCII characters to draw the tree.
pstree -A ...
Disable compaction of identical subtrees. By default, subtrees are compacted whenever possible.
pstree -c ...
Use VT100 line drawing characters.
pstree -G ...
Sort processes with the same ancestor by PID instead of by name. (Numeric sort.)
pstree -n ...
Show parent processes of the specified process.
pstree -s ...
Show namespaces transitions. Like -N, the output is limited when running as a regular user.
pstree -S ...
Show full names for threads when available.
pstree -t ...
Hide threads and only show processes.
pstree -T ...
Display version information.
pstree -V ...