diff --git a/pages/linux/pstree.md b/pages/linux/pstree.md index 018b8fbb6d..f52b17253c 100644 --- a/pages/linux/pstree.md +++ b/pages/linux/pstree.md @@ -3,7 +3,7 @@ > A convenient tool to show running processes as a tree. > More information: . -- Display a tree of processes: +- Display a tree of all processes (rooted at init): `pstree` @@ -14,3 +14,15 @@ - 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}}`