0% found this document useful (0 votes)
42 views1 page

OS (Linux) Process

The document explains how to manage background jobs using the 'jobs' command to list currently running or suspended jobs. It also describes how to bring a background job to the foreground using the 'fg' command. A note is included stating that the foreground job will occupy the shell until it is completed, suspended, or stopped.

Uploaded by

Viraj Bhosale
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
42 views1 page

OS (Linux) Process

The document explains how to manage background jobs using the 'jobs' command to list currently running or suspended jobs. It also describes how to bring a background job to the foreground using the 'fg' command. A note is included stating that the foreground job will occupy the shell until it is completed, suspended, or stopped.

Uploaded by

Viraj Bhosale
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

Managing the background jobs

You can use the jobs command to list the jobs that are currently running or suspended
in the background.

$ jobs
[1]+ Running sleep 100 &

You can use the fg command to bring a background job to the foreground.

$ fg % 1
sleep 100

Note: The foreground job occupies the shell until the job is completed, suspended, or
stopped and placed into the background.

You might also like