Difference between revisions of "Bg, fg and jobs"

From Linuxintro
imported>ThorstenStaerk
(Created page with "bg, fg and jobs are process related commands that belong together. bg stands for background and fg stands for foreground. = Concept = When you start a program under ...")
 
imported>ThorstenStaerk
Line 2: Line 2:
  
 
= Concept =
 
= Concept =
When you start a [[program]] under Linux, by default the command runs in the foreground. This means the console is reserved for in- and output to and from this program. You do not get a prompt while the program is running:
+
When you start a [[program]] under Linux, by default the command runs in the foreground. This means the console is reserved for in- and output to and from this program. You do not get a prompt while the program is running. Here is an example for this showing the program xclock being called by the command
 +
xclock

Revision as of 09:46, 16 December 2011

bg, fg and jobs are process related commands that belong together. bg stands for background and fg stands for foreground.

Concept

When you start a program under Linux, by default the command runs in the foreground. This means the console is reserved for in- and output to and from this program. You do not get a prompt while the program is running. Here is an example for this showing the program xclock being called by the command

xclock