pstree
ProcessesFundamentals In simulator In real LinuxShow processes as a tree
Name: pstree = process tree
You can practise it right away in the simulator, and use it in real Linux mode too.
Description
pstree draws processes as a tree of parents and children, rooted at PID 1 (usually systemd). -p adds PIDs; great for seeing which process started which.
Syntax
pstree [OPTION]... [PID|USER]Common options
| -p / --show-pids | Show PIDs |
| -a / --arguments | Show command-line arguments |
| -u / --uid-changes | Show user changes |
| -h / --highlight-all | Highlight this process and its ancestors |
| -s / --show-parents | Show the ancestors of the given process |
| -n / --numeric-sort | Sort by process ID |
| -T / --hide-threads | Leave out threads |