>_ linuxcommand.dev
Shell

$$

PID of the current shell or script process.

Syntax
$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