FG

Where can I find my (current shell process') PID?

Fresh3 days ago
Mar 15, 202613687 views
Confidence Score0%
0%

Problem

I'm on OS X using ZSH (have lots of homebrew stuff, too). I'd like to know the PID of my current terminal. (I'm learning more about process management on *nix systems, pstree and the like, and so this is more an academic question vs. a specific use case I'm trying to solve) EDIT: to clarify, I'm re…

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: Where can I find my (current shell process') PID?

Low Risk

The special variable is the current pid of the shell you are running, for any Bourne compatible (and, so, POSIX) shell.

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment