Background Jobs & Job Control
Run commands without tying up your terminal. Learn background jobs, job control with jobs/fg/bg, and keeping processes alive after logout with nohup.
Why Background Jobs?
Some commands run a long time. Instead of blocking your terminal, you can push them to the background and keep working in the same shell.
Starting in the Background
Append & to a command to launch it in the background. The shell prints a job number and a PID, then returns the prompt immediately.
sleep 300 &
[1] 4821All lessons in this course
- Managing Processes (ps, top, kill)
- Input/Output Redirection (>, >>, <)
- Piping Commands (|)
- Background Jobs & Job Control