Bring a job into the foreground

To bring a specific background job into the foreground:

1. Enter the fg (foreground) command followed by the job number.

   fg job_number

If there is only one job running in the background just enter the fg command.

For example:

   lpr -Pps23 interface.ps &
   jobs
   [1]  + Running              xterm -g 90x55
   [2]  - Running              xterm -g 90x55
   [3]    Running              lpr -Ppsa interface.ps
   fg 3
   lpr -Pps23 interface.ps

This starts a process to print a file as a background job. The user then checks the current active jobs and brings the print job - job number three (3) - into the foreground.


[Home] [Search] [Index] This site maintained by system@gantep.edu.tr