|
Quick links About
bg Syntax Examples
Technical support Related commands
Unix
main page
About bg
Continues a
stopped job in the
background. This function is not available on all Unix shell's.
Syntax
bg [-l] [-p] [-x] [job]
| -l |
Report the process group ID and working directory of the jobs. |
| -p |
Report only the process group ID of the jobs. |
| -x |
Replace any job_id found in command or arguments with the corresponding process
group ID, and then execute command passing it arguments. |
| job |
Specifies the job that you want to run in the
background. |
Examples
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).
Related commands
cancel
fg jobs
kill lpstat
ps stop |