echo $$

Category: Shell & Bash

echo $$

Print the PID of the current shell process

Prints the Process ID (PID) of the current shell — every running program has a unique ID number.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.