Job Control

noun

say it: “JOB kun-TROHL” /ˈdʒɑb kənˈtroʊl/

The shell's way of pausing, resuming and switching the programs it started between the front of the terminal and the background.

What is job control in bash?

Job control lets one terminal juggle several programs. & starts one in the background, Ctrl+Z pauses the one in front, bg lets a paused one carry on behind, fg brings one back to the front, and jobs lists them all with their numbers, %1 for job 1.

./export-video.sh > export.log &   # [1] 3124
jobs                               # [1]+  Running  ./export-video.sh > export.log &
fg %1                              # back in front; Ctrl+Z pauses it, bg sends it behind

In a sentence

  • “Thanks to job control, Sam paused the export with Ctrl+Z and carried on in the background with bg.”
  • “jobs, fg and bg are bash's job control commands.”

Level: Journeyman · More Unix terms at this level

Updated