0Pricing
Linux Command Line & Bash Scripting Mastery · Lesson

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] 4821

All lessons in this course

  1. Managing Processes (ps, top, kill)
  2. Input/Output Redirection (>, >>, <)
  3. Piping Commands (|)
  4. Background Jobs & Job Control
← Back to Linux Command Line & Bash Scripting Mastery