$!  –  PID of Most Recent Background Command

$! expands to the process ID of the most recent background command executed in the current shell.

BashSupport Pro is a Bash and POSIX IDE with support for $!try it now!
© 2020–2024 Joachim Ansorg
Imprint
Privacy Policy
Legal