$!  –  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 $_EXCLtry it now!
© 2020–2026 Joachim Ansorg
Imprint
Privacy Policy
Legal