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