Background to Foreground Linux Programs

A brief note on moving programs from foreground to background from the Linux prompt.

First, you can pause your program with a "Ctrl+Z". The 'paused' program number is displayed.

Then, you can restart your program, BUT in the background, with a "bg [program number]" command.

Then to move it to foreground, use "fg [program number]".

Neat, eh?
Oh, you can start programs directly to the background by appending an amperstand after the program name.  E.g. "top&" will run top in the background - rather pointless, but it's only an example!


tags: linux, command, multiple, tasks

Related Scribbles:
  • Background, logged out FTP
  • Linux Commands


  • ID: 288
    Author:
    leonard
    Date Updated:
    2008-10-09 14:53:08
    Date Created:
    2003-09-03 00:32:00

    Edit

    Comments?
     >> Leonard Chan's Homepage  >> Scribble Web  >> Background to Foreground Linux Programs
    leonard.lotus-land.ca is hosted by Perceptus Solutions Inc.