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 Learn more about Job Control
- Job Control: bg, fg, jobs, and nohup Explained How to run multiple tasks in a single terminal session, move commands between foreground and background, and keep a process running after you disconnect, using Bash job control and nohup.
- Understanding Process Signals on Linux Signals are how Linux tells a running process to stop, reload, or respond to an event. This guide covers the most important signals, the real difference between SIGTERM and SIGKILL, and how to send and handle them.