Linux Signals and Job Control/Bring job to foreground

Resume a job in the foreground.

Section: Shell Job Control

Bring job to foreground

bash
bash
fg %1
Explanation

Resume a job in the foreground.

Learn the surrounding workflow

Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.

Related commands

Same sheet · prioritizing Shell Job Control
Start command in background
Launch a command as a background job.
OpenIn sheetbashsame section
List shell jobs
Show background and stopped jobs with PIDs.
OpenIn sheetbashsame section
Resume stopped job in background
Continue a stopped job in the background.
OpenIn sheetbashsame section
Suspend current foreground job
Suspend the current foreground process group.
OpenIn sheetbashsame section
Remove job from shell tracking
Prevent the shell from sending SIGHUP to the job on exit.
OpenIn sheetbashsame section
Wait for shell job
Block until a shell job completes.
OpenIn sheetbashsame section