diff --git a/pages/common/ps.md b/pages/common/ps.md index f6c5e4f7c6..c5949a6208 100644 --- a/pages/common/ps.md +++ b/pages/common/ps.md @@ -21,3 +21,7 @@ - List all processes of the current user as a tree: `ps --user $(id -u) f` + +- Get the parent pid of a process: + +`ps -o ppid= -p {{pid}}`