1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-07-06 08:35:35 +02:00
tldr/pages/linux/pstree.md
Isidro b7ec4ef6b6
pstree: add useful arguments (#16691)
Co-authored-by: Managor <42655600+Managor@users.noreply.github.com>
Co-authored-by: Machiavelli <145562237+MachiavelliII@users.noreply.github.com>
2025-06-01 14:06:33 +03:00

28 lines
558 B
Markdown

# 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}}`