bg is used to continue a stopped job by running it in the background. By default,
bg will simply resume the most recently suspended job.
bg will commonly be used with the
Useful Options / Examples
- Running bash download-file.sh
+ Stopped cp /usr/LargeDir /usr/SomewhereElse
$ bg %2
$ echo "Run more jobs while cp /usr/LargeDir /usr/SomewhereElse runs in background"
Break it down
%2 brings job number 2 to the background. Alternatively
%cp would bring the same job to the background.
- Bringing multiple jobs is possible by using the syntax:
$ bg [%jobID1] [%jobID2] [%jobID3] ... [%jobIDN]