Displays all running processes in a tree.
pstree [options] [process_id]
-a displays the command line arguments.
-c does not compress the subtrees.
-l displays a long line.
-n sorts the processes by their identifiers (and not by name).
-p displays the process IDs.
Pstree command displays all the processes in the form of a tree – so it’s easier to see the relationship precedence processes.