2025-03-14 21:59:59 -06:00
|
|
|
# pstree
|
|
|
|
|
|
|
|
|
|
> A convenient tool to show running processes as a tree.
|
|
|
|
|
> More information: <https://manned.org/pstree>.
|
|
|
|
|
|
2025-07-24 22:27:13 -06:00
|
|
|
- Display a tree of all processes (rooted at init):
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
`pstree`
|
|
|
|
|
|
|
|
|
|
- Display a tree of processes with PIDs:
|
|
|
|
|
|
2025-05-08 12:26:01 -06:00
|
|
|
`pstree {{[-p|--show-pids]}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Display all process trees rooted at processes owned by specified user:
|
|
|
|
|
|
|
|
|
|
`pstree {{user}}`
|
2025-07-24 22:27:13 -06:00
|
|
|
|
|
|
|
|
- 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}}`
|