HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

bg — Resume suspended jobs (e.g. using `<Ctrl z>`), and keep them running in the background. See also: `j

Submitted by: @import:tldr-pages··
0
Viewed 0 times
commandsuspendedcliresumectrlusingbgjobs

Problem

How to use the bg command: Resume suspended jobs (e.g. using <Ctrl z>), and keep them running in the background. See also: jobs, fg, disown. More information: <https://www.gnu.org/software/bash/manual/bash.html#index-bg>.

Solution

bg — Resume suspended jobs (e.g. using <Ctrl z>), and keep them running in the background. See also: jobs, fg, disown. More information: <https://www.gnu.org/software/bash/manual/bash.html#index-bg>.

Resume the most recently suspended job and run it in the background:
bg


Resume a specific job and run it in the background (run jobs to find the job number):
bg %{{job_number}}

Code Snippets

Resume the most recently suspended job and run it in the background

bg

Resume a specific job and run it in the background (run `jobs` to find the job number)

bg %{{job_number}}

Context

tldr-pages: common/bg

Revisions (0)

No revisions yet.