Process Management
fg
Bring a background or suspended job to the foreground.
Synopsis
syntax
fg [JOB_SPEC]
Examples
Bring most recent background job to foreground
fg
Bring job 1 to foreground
fg %1
Bring job matching 'vim' to foreground
fg %vim
About fg
The `fg` command bring a background or suspended job to the foreground. Process management commands let you monitor, control, and schedule running processes.
Linux is a multitasking operating system, and understanding how to list processes, send signals, adjust priorities, and manage background jobs is vital for system administration and debugging performance issues. The command accepts 0 commonly used flags shown above, though the full set of options is available in the man page (`man fg`).
The 3 examples on this page cover typical real-world usage patterns that you can copy and adapt for your own workflows.
Related commands
More Process Management Commands
Other commands in the Process Management category