bg command in Linux with Examples
bg command in linux is used to place foreground jobs in background.
Syntax:
bg [job_spec ...]
job_spec may be:
%n
: Refer to job number n.
%str
: Refer to a job which was started by a command beginning with str.
%?str
: Refer to a job which was started by a command containing str.
%% or %+
: Refer to the current job. fg and bg will operate on this job if no job_spec is given.
%-
: Refer to the previous job.
Options for bg command:
Last Updated :
15 May, 2019
Like Article
Save Article
Share your thoughts in the comments
Please Login to comment...