Background jobs in Linux

This is here as a reminder to myself…..

Jobs can be run in the background by adding a ampersand (&) after the command:

% /bin/blah &

and running jobs can be stopped in the background with ‘ctrl-z’

The command jobs will display all the jobs currently in the background and the command fg followed by a number will bring a specific job to the foreground, or without a number will bring the last job pushed to the background into the foreground.

This will stick a job in the background without killing/warning you on exit:

nohup /bin/blah &


March 04, 2009, 4:28pm