Back to the command reference

fg

ProcessesFundamentals In real Linux

Bring a job to the foreground

Name: fg = foreground

This command needs a real Linux system; you can practise it in real Linux mode.

Description

fg is a shell builtin that brings a background or stopped job to the foreground so it gets keyboard input again; without an argument it uses the most recent job.

Syntax

fg [%JOB]

Common options

%NJob number
%+ / %-The current job / the previous one (%+ when none is given)

Examples

Related