>_ linuxcommand.dev
Shell

$!

PID of the most recently started background process.

Syntax
$command & echo $!
Examples
Examples
$sleep 60 & echo $!
Examples
$longjob & pid=$!
Typical use cases
Stop a specific background job
kill $!
Note Often combined with wait or kill for job control.
Export