Introducing UNIX and Linux |
Processes and devicesOverview |
Foreground and backgroundWhen running a command interactively - that is, when you type in
a command and wait for the system to respond - the command is being
run in the foreground. You can instruct UNIX to
run a program in the background instead. This
means that the program will begin to run but you will be prompted
by the shell for the next command without waiting for the program
to complete - your login shell and the background program are
effectively running simultaneously. In order to instruct UNIX to
run a command in the background, follow the command with an
ampersand (
A line will be printed confirming that the command has been sent
to the background, and then you will be prompted for your next
command with
|
Copyright © 2002 Mike Joy, Stephen Jarvis and Michael Luck