-
-
Notifications
You must be signed in to change notification settings - Fork 1
Linux bg Guide
Mattscreative edited this page Dec 5, 2025
·
2 revisions
Complete beginner-friendly guide to bg on Linux, covering Arch Linux, CachyOS, and other distributions including sending jobs to background, job control, and background process management.
bg (background) sends jobs to background.
Uses:
- Background job: Send job to background
- Job control: Control jobs
- Process management: Manage processes
- Continue stopped: Resume stopped jobs
Why it matters:
- Job control: Control background jobs
- Multitasking: Run multiple jobs
- Process management: Manage processes
Basic usage:
# Send job to background
bg
# Sends most recent stopped jobJob number:
# Send specific job
bg %1
# Or
bg 1
# %1 = job number 1Resume in background:
# Resume stopped job in background
bg %1
# Continues job in backgroundStart in background:
# Start command in background
command &
# Automatically runs in backgroundReference jobs:
# Job numbers
bg %1 # Job 1
bg %2 # Job 2
bg %+ # Most recent
bg %- # Previous jobCheck jobs:
# List jobs first
jobs
# Verify job number existsThis guide covered bg usage, job control, and background process management for Arch Linux, CachyOS, and other distributions.
- fg Guide - Foreground jobs
- jobs Guide - List jobs
- nohup Guide - Detached jobs
-
bg Documentation:
man bg
This guide covers Arch Linux, CachyOS, and other Linux distributions. For distribution-specific details, refer to your distribution's documentation.