Process Management: bg - Background Jobs

When a command is running you can suspend it using ctrl-Z.

The command will immediately stop, and you get back to the shell terminal.

You can resume the execution of the command in the background, so it will keep running but it will not prevent you from doing other work in the terminal.

In this example I have 2 commands stopped:

I can run bg 1 to resume in the background the execution of the job #1.

I could have also said bg without any option, as the default is to pick the job #1 in the list.

The bg command works on Linux, macOS, WSL, and anywhere you have a UNIX environment

Lessons in this unit:

0: Introduction
1: kill - Terminate Processes
2: killall - Kill by Name
3: jobs - List Jobs
4: ▶︎ bg - Background Jobs
5: fg - Foreground Jobs
6: nohup - Run Immune to Hangups

Join my AI Workshop!

The Web Development BOOTCAMP cohort starts in February 2026