Find a Process's Parent with ps ppid
Show a process alongside its parent PID so you know what launched it.
01Command
$ ps -o pid,ppid,command -p <PID>02What it does
Every macOS process is started by another process, and the ppid column records that parent. Selecting the pid, ppid and command columns with -o and limiting output to one PID with -p gives a compact answer. Take the ppid from the result and feed it back into the same command to walk up the chain until you reach launchd (PID 1), the ancestor of everything.
03Risk
04Undo
✓No undo needed — this command does not change persistent state.
05Sources
- PS(1) — macOS man pageEvidence: The man page lists ppid as a standard output keyword ("uid, pid, ppid, flags, ...") and documents the -o option to select exactly which columns are displayed.
- ps(1) man pageEvidence: The page documents the -o format option for specifying output columns including ppid, and the -p option to select processes by process ID.
Last verified: 2026-09-19 · Category: System & Settings
06Related solutions
Point macOS screen captures at any folder you choose instead of the desktop.
Grab any file from the web straight into the current folder — no browser needed.
List the biggest files in your home folder that are eating disk space.