commands

bg — resume a job in background

Resume a stopped shell job in background, using interactive job control. Verify the job number and let the bounded task finish. Use a fresh private workspace, ordinary user and bounded child processes; no sudo.

Formal Syntax & Structure

linux syntaxlinux
bg [JOBSPEC]

Parameters & Attributes

NameTypeDescription
JOBSPECoperandshell job specification

Return Value

exit status and output

Resume a stopped shell job in background, using interactive job control. Verify the job number and let the bounded task finish.

Working Example

Example Snippetlinux
# In a fresh interactive shell: start sleep 15, press Ctrl-Z, check jobs.bg %1
Linux Reference