jobs
shellLinux/Unix
The jobs command is one of the most frequently used commands in Linux/Unix-like operating systems. jobs Display status of jobs in the current shell session
Quick Reference
Command Name:
jobs
Category:
shell
Platform:
Linux/Unix
Basic Usage:
jobs [options] [arguments]
Common Use Cases
Syntax
jobs [-lnprs] [jobspec]
Options
Option | Description |
---|---|
-l |
List process IDs in addition to the normal information |
-n |
Display only jobs that have changed status since last notification |
-p |
List only the process IDs |
-r |
Restrict output to running jobs |
-s |
Restrict output to stopped jobs |
jobspec |
Specify the job for which to show information (e.g., %1 for job 1) |
Examples
How to Use These Examples
The examples below show common ways to use the jobs
command. Try them in your terminal to see the results. You can copy any example by clicking on the code block.
# Basic Examples Basic
jobs