Thrum

How do you find a process by its PID on a Mac?

Last reviewed: 19 November 2026.

In Terminal, run ps -p 1234 -o pid,ppid,user,command with the PID in place of 1234: it prints the process's parent, its owner and the full path of the program. To go the other way, from a name to a PID, run pgrep -l followed by part of the name.

How do you look up a PID in Terminal?

  1. Open Terminal. Open Terminal from Applications > Utilities.
  2. Ask ps about the PID. Run ps -p 1234 -o pid,ppid,user,lstart,command. The output shows the PID, the parent PID (PPID), the user it runs as, when it started, and the command with its full path.
  3. Check the parent. Run the same command with the PPID to see what started it. A PPID of 1 means launchd, macOS's first process, started it as a job.
  4. See its open files. Run lsof -p 1234 to list the files, folders and network connections the process has open. For processes you do not own, add sudo.

How do you find a PID from a process name?

pgrep -l Finder
pgrep -lf "Google Chrome Helper"

pgrep -l prints the PID and name of every process whose name matches. -f matches against the full command line instead, which is useful for helpers whose names are truncated or contain spaces.

For a process with a short name, ps -axo pid,user,comm | grep -i finder gives the same answer with the owner included.

How do you find a PID in Activity Monitor?

Activity Monitor shows a PID column on every tab. Click its heading to sort by number, then scroll to the PID you want, or type the process name in the search field to narrow the list. Choose View > All Processes first, or processes owned by root and other users are hidden.

Double-clicking a row opens a window with the parent process (name and PID), the user, the process group and the executable path.

Why does a PID point to a different process later?

PIDs are reused. When a process exits, its number becomes free and a later process can get it. If you note a PID in a log or crash report and look it up hours later, check the start time in the lstart column to be sure it is the same process.

Some PIDs are fixed: PID 0 is the kernel (kernel_task in Activity Monitor) and PID 1 is launchd.

How can Thrum help?

Thrum keeps a live CPU graph in the menu bar. One click shows the eight processes using the most CPU. An optional alert tells you when a process stays above a CPU level you choose (50 to 200% of one core) for 1 to 10 minutes.

Thrum is $4.99 once with a 14-day free trial and no account. It requires macOS 26 Tahoe on Apple silicon or Intel.

Questions

Why does ps say no process matches the PID?

The process has already exited. ps prints only the header line in that case.

Can two processes have the same PID?

Not at the same time. A PID is unique among running processes, but it can be reused after a process exits.

Sources