bash: Display the process number of the last background process.
-
Take into account the main readme for this section. README first.
Run a process in the background.
$ sleep 2 & [1] 2404 $ [1]+ Done sleep 2 $
Check the process number.
$ echo $! 2404
© Lightnetics 2024