2025-03-14 21:59:59 -06:00
|
|
|
# jobs
|
|
|
|
|
|
|
|
|
|
> Shell builtin for viewing information about processes spawned by the current shell.
|
2025-12-16 10:20:31 -07:00
|
|
|
> Options other than `-l` and `-p` are exclusive to Bash.
|
2025-03-14 21:59:59 -06:00
|
|
|
> More information: <https://www.gnu.org/software/bash/manual/bash.html#index-jobs>.
|
|
|
|
|
|
|
|
|
|
- View jobs spawned by the current shell:
|
|
|
|
|
|
|
|
|
|
`jobs`
|
|
|
|
|
|
|
|
|
|
- List jobs and their process IDs:
|
|
|
|
|
|
|
|
|
|
`jobs -l`
|
|
|
|
|
|
|
|
|
|
- Display information about jobs with changed status:
|
|
|
|
|
|
|
|
|
|
`jobs -n`
|
|
|
|
|
|
|
|
|
|
- Display only process IDs:
|
|
|
|
|
|
|
|
|
|
`jobs -p`
|
|
|
|
|
|
|
|
|
|
- Display running processes:
|
|
|
|
|
|
|
|
|
|
`jobs -r`
|
|
|
|
|
|
|
|
|
|
- Display stopped processes:
|
|
|
|
|
|
|
|
|
|
`jobs -s`
|