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.


Usage:

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:

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