Learn › Linux Foundations
Job Control
Background processes, foreground/background switching, job listing, and process signals. Control what runs and when.
Labs in this module
- Job Control Overview - The mental model that opens the Job Control module. One terminal can run more than one job: the foreground job owns your keyboard right now,
- Ctrl-Z and SIGTSTP - Freeze a running foreground job with the Ctrl-Z keystroke, which sends SIGTSTP and leaves the job Stopped, not killed. Stopped means frozen
- nohup - Keep a job running after you log out with nohup. The nohup cmd & launch-and-leave form, why it pairs with &, redirecting output to your own
- jobs - Read the roster of every program you backgrounded or paused in this shell with jobs. The four-part line (number, + / - symbol, state, comman
- Keyboard Signals - The four control-key combinations that talk to the foreground program: Ctrl-C sends SIGINT (interrupt), Ctrl-Z sends SIGTSTP (suspend), Ctrl
- & Background Operator - Stop letting long jobs freeze your terminal. Append & to run a command in the background: the shell prints its job number and PID and hands
- fg - Pull a background or stopped job back to the front with fg. Bare fg for the newest job, %1 to name a job by number, %+ and %- for the curren
- bg - Rescue a job you started without an & using bg. Ctrl+Z stops it, then bg resumes it in the background so your prompt stays free and no progr
- Operation Night Shift - The Job Control module capstone mission. Drill the & background operator, jobs, Ctrl-Z, bg, fg, and nohup in one hands-on operation on a rea