Linux Commands Reference - Complete Linux Command Guide

Comprehensive Linux command reference with 150+ commands. Search, filter by category, and view detailed usage examples.

Share
Back to commands

pstree

Display processes as a tree

Syntax

pstree [OPTION]... [PID|USER]

Common Options

-pShow PIDs
-hHighlight current process
-aShow command line arguments
-lDon't truncate long lines
-nSort by PID
-uShow uid transitions
-sShow parent processes

Common Examples

pstree

Show process tree

pstree -p

Show process tree with PIDs

pstree -p 1234

Show subtree for PID

pstree -h

Highlight current process

pstree -a nginx

Show nginx tree with args

Related Commands

Related Tools

More Code & Dev Tools