Move A Job Into The Foreground

Use fg to move a job from the background into the the foreground. By default fg works on the most recent background job.

Example…
Bring the most recent background job into the foreground…
$ fg <Enter>

To specifiy a job to move into the foreground when you have many jobs in the background give the job number preceded with a (%) as an option to fg.

Example…
Bring  job 4 to the foreground type…
$ fg %4 <Enter>

This entry was posted in BSD, Bash, GNU/Linux, UNIX and tagged , , , , . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

*


You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>