foreground job
The job that currently owns the terminal's input, so the shell waits for it before showing the prompt again.
In more detail
Only one job is in the foreground at a time, and keyboard signals such as Ctrl+C and Ctrl+Z go to it. Ctrl+Z stops it, and bg lets it continue in the background.
Related terms
- background job — A command started with & at the end of the line, which runs while the shell immediately gives you the prompt back.
- job control — The shell feature for managing the commands it started: listing them with jobs, and moving them between foreground and background with fg and bg.
- terminal — The text window where you type commands and read their output.
Taught in
- Job Control, And Processes That Outlive You — Linux Fundamentals & Systems Administration