UNIX Guide, for beginners and Mac OS X users
You are here: SillyDog701 > UNIX Guide >SillyDog701 > UNIX Guide > (index) supportSupport - ask in our friendly forums.

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]UNIX Guide home | [Search]search | index
Page URL: http://sillydog.org/unix/
[SillyDog701] [Netscape] [MozInfo701] [MacCentre701] [UNIX Guide] [AntTunes701][Forums] [Search] [Change Log] [Feedback] [About Us] [Sitemap]
This UNIX Guide maintained by SillyDog701, portion of this Guide is based on UNIXhelp. UNIXhelp is copyright University of Edinburgh. This page was last modified on 14 March, 2006
Netscape NOW!Made on a Mac
support MozInfo701 and SillyDog701