Команда bg

Continues a stopped job in the background. This function is not available on all Unix shell's.

Синтаксис

bg [-l] [-p] [-x] [job]

-lReport the process group ID and working directory of the jobs.
-pReport only the process group ID of the jobs.
-xReplace any job_id found in command or arguments with the corresponding process  group ID, and then execute command passing it arguments.
jobSpecifies the job that you want to run in the background.

Примеры

bg  - Lists the current running jobs.

Below is a listing of how to determine the type of job when looking at the job listing.

% or %+ or %%for the current job.
%- or -for the previous job.

Technical support

What causes stopped jobs?

Generally a stopped job will occur if the connection is interrupted or the commanded is interrupted with TSTP signals (typically CTRL + Z).

Обратно к списку команд