HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

pstree — A convenient tool to show running processes as a tree. More information: <https://manned.org/pstree>

Submitted by: @import:tldr-pages··
0
Viewed 0 times
commandpstreeshowclirunningtoolprocessesconvenient
linux

Problem

How to use the pstree command: A convenient tool to show running processes as a tree. More information: <https://manned.org/pstree>.

Solution

pstree — A convenient tool to show running processes as a tree. More information: <https://manned.org/pstree>.

Display a tree of all processes (rooted at init):
pstree


Display a tree of processes with PIDs:
pstree {{[-p|--show-pids]}}


Display all process trees rooted at processes owned by specified user:
pstree {{user}}


Display command line arguments:
pstree {{[-a|--arguments]}}


Display children of a specified process:
pstree {{pid}}


Display parents of a specified process:
pstree {{[-s|--show-parents]}} {{pid}}

Code Snippets

Display a tree of all processes (rooted at init)

pstree

Display a tree of processes with PIDs

pstree {{[-p|--show-pids]}}

Display all process trees rooted at processes owned by specified user

pstree {{user}}

Display command line arguments

pstree {{[-a|--arguments]}}

Display children of a specified process

pstree {{pid}}

Context

tldr-pages: linux/pstree

Revisions (0)

No revisions yet.