2017-10-22 20:05:47 +08:00
|
|
|
# pstree
|
|
|
|
|
2017-10-24 10:21:29 +08:00
|
|
|
> A convenient tool to show running processes as a tree.
|
2021-10-06 20:27:29 +05:30
|
|
|
> More information: <https://manned.org/pstree>.
|
2017-10-22 20:05:47 +08:00
|
|
|
|
2025-06-01 13:06:33 +02:00
|
|
|
- Display a tree of all processes (rooted at init):
|
2017-10-22 20:05:47 +08:00
|
|
|
|
|
|
|
`pstree`
|
|
|
|
|
|
|
|
- Display a tree of processes with PIDs:
|
|
|
|
|
2025-04-27 10:35:40 +03:00
|
|
|
`pstree {{[-p|--show-pids]}}`
|
2017-10-24 10:21:29 +08:00
|
|
|
|
|
|
|
- Display all process trees rooted at processes owned by specified user:
|
|
|
|
|
|
|
|
`pstree {{user}}`
|
2025-06-01 13:06:33 +02: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}}`
|