>_
linuxcommand.dev
Home
Roadmap
Contact
EN
Dark
>_
>_
linuxcommand.dev
Home
Roadmap
Contact
Legal Notice
Privacy Policy
Language
DE
EN
Design
Dark
Startseite
›
$$
Shell
$$
PID of the current shell or script process.
Ubuntu
Debian
Arch
Fedora
CentOS
SUSE
Alpine
macOS
FreeBSD
Last updated:
2026-05-12
Report error
Syntax
Copy
$
echo $$
Examples
Examples
$
echo $$
Examples
$
tmpfile=/tmp/script.$$
Typical use cases
Create unique temp file names
/tmp/job.$$
Note
Useful for unique temporary filenames in scripts.
Export
Text
JSON
Script