fg - run jobs in the foreground


C shell

fg [%job ...]

Korn shell

fg [job ...]


This command is a built-in command in the C shell and the Korn shell.

C shell

The fg(1) command brings the specified jobs (or, without arguments, the current job) into the foreground, continuing each if it is stopped. The job argument can be a number, a string, '', '%', '+' or '-' as described under the Jobs section in tcsh(1). See also the run-fg-editor editor command in tcsh(1).

Korn shell

The fg(1) command resumes the specified job(s) in the foreground. If no jobs are specified, %+ is assumed. This command is only available on systems on which job control is enabled. See the Job Control section in ksh(1) for more information.