jobs Command Options In Linux

Each bash shell keeps track of the processes that are running from that shell. These processes are referred to as jobs. To list the currently running jobs, execute the jobs command from the bash shell, like so:

$ jobs
[1]- Running sleep 250 & 
[2]+ Running sleep 999 &

Each job is assigned a job number that controls the job. Refer to this job number using the following syntax:

%job_number

jobs Command Options

Option Description
-l Provide more information about each job listed. This information shall include the job number, current job, process group ID, state, and the command that formed the job.
-p Display only the process IDs for the process group leaders of the selected jobs.
Related Post