System and processes
The pstree command
Shows processes as a tree: who launched whom. It is the best way to see the process hierarchy.
Syntax
pstree [opciones]Most useful options
-pShows the PIDs-uShows the userCopy-ready examples
$ pstreeProcess treeYou can try them in the browser terminal: it does not touch your computer.
Typical mistakes
- On systems with thousands of processes the output is huge: combine it with less.
FAQ
Why does everything hang from systemd?
Because systemd is process 1: it is the parent of all the others.
Learn to actually use it
The basic Linux course takes you from zero to console fluency with 24 self-grading lessons.
Start the free course