Display process hierarchy with PIDs and arguments.
Section: Process Inspection Basics
Show process tree
bash
bash
pstree -apExplanation
Display process hierarchy with PIDs and arguments.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Process Inspection Basics
List processes with BSD format
Show all processes with user, CPU, memory, and command columns.
List processes with full format
Show all processes with PID, PPID, start time, and command.
List processes for a user
Filter processes by effective user and show full format.