aboutsummaryrefslogtreecommitdiffhomepage
path: root/doc_src/bg.txt
blob: 8e9ec2444c6353f56d1e5cea3931dbb23f8bc1cf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
\section bg bg - send jobs to background

\subsection bg-synopsis Synopsis
\fish{synopsis}
bg [PID...]
\endfish

\subsection bg-description Description

`bg` sends <a href="index.html#syntax-job-control">jobs</a> to the background, resuming them if they are stopped. A background job is executed simultaneously with fish, and does not have access to the keyboard. If no job is specified, the last job to be used is put in the background. If PID is specified, the jobs with the specified process group IDs are put in the background.

The PID of the desired process is usually found by using <a href="index.html#expand-process">process expansion</a>.


\subsection bg-example Example

`bg %1` will put the job with job ID 1 in the background.