Shell Process ID
$$
expands to the process ID of the invoked shell. In a subshell it expands to the same ID as that of the parent process.
Links
Examples
Print PID of the Shell twice :
|
|
BashSupport Pro is a Bash IDE with support for $$ – try it now!
$$
expands to the process ID of the invoked shell. In a subshell it expands to the same ID as that of the parent process.
Print PID of the Shell twice :
|
|