On Unix-like operating systems, the jobs shell command lists the status of all running jobs.
This page covers the bash built-in version of jobs.
Syntax
jobs [-lnprs] [JOBSPEC …]
Options
Examples
jobs
Displays all running jobs. Output is similar to the following:
- Syntax
- Examples
- Related commands
- Linux commands help
[1] + Stopped (user) top
Here, the job number 1 was suspended by the user, and the process was the top utility.
jobs -l
When supplied the -l option, jobs displays process IDs in addition to job number, similar to the following output:
[3] 16882 Running ./chsearchproc (wd: ~/public_html/cgi-bin/chsearch)
Related commands
at — Schedule a command to run at a certain time.csh — The C shell command interpreter.kill — Send a signal to a process, affecting its behavior or killing it.ksh — The Korn shell command interpreter.ps — Report the status of a process or processes.sh — The Bourne shell command interpreter.