whatis job-control

Job Control

Also known as: bg, fg, jobs, nohup

Shell features for pausing, backgrounding, and resuming commands with Ctrl+Z, bg, fg, jobs, and a trailing &.

What Is Job Control in Linux?

Ctrl+Z suspends the foreground job with SIGTSTP. bg resumes it in the background, fg brings it back, and jobs lists what the current shell is managing. Ending a command with & starts it in the background directly.

Background jobs still die when the terminal closes, because the shell sends them SIGHUP. nohup, disown, or running the command inside tmux keeps it alive.

Example

long-task &
jobs
fg %1