Name

fg

Synopsis

fg [jobIDs]

Description

Bring the current job or the jobIDs to the foreground. jobID can be % job-number.

Example

If you suspend a vi editing session (by pressing Ctrl-Z), you might resume vi using any of these commands:

% %
% fg
% fg %
% fg %vi     
                     Match initial string

Get Linux in a Nutshell, Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.