2016-01-04 22:17:45 +00:00
|
|
|
# jobs
|
|
|
|
|
2023-06-17 17:04:07 +01:00
|
|
|
> Shell builtin for viewing information about processes spawned by the current shell.
|
|
|
|
> Options other than `-l` and `-p` are exclusive to `bash`.
|
2021-09-02 19:33:49 +01:00
|
|
|
> More information: <https://manned.org/jobs>.
|
2016-01-04 22:17:45 +00:00
|
|
|
|
2016-01-07 17:31:27 +00:00
|
|
|
- View jobs spawned by the current shell:
|
2016-01-04 22:17:45 +00:00
|
|
|
|
|
|
|
`jobs`
|
|
|
|
|
2021-08-15 18:59:09 +01:00
|
|
|
- List jobs and their process IDs:
|
2016-01-04 22:17:45 +00:00
|
|
|
|
|
|
|
`jobs -l`
|
|
|
|
|
2016-01-07 17:31:27 +00:00
|
|
|
- Display information about jobs with changed status:
|
2016-01-04 22:17:45 +00:00
|
|
|
|
|
|
|
`jobs -n`
|
|
|
|
|
2023-06-17 17:04:07 +01:00
|
|
|
- Display only process IDs:
|
2016-01-04 22:17:45 +00:00
|
|
|
|
|
|
|
`jobs -p`
|
|
|
|
|
2016-01-07 17:31:27 +00:00
|
|
|
- Display running processes:
|
2016-01-04 22:17:45 +00:00
|
|
|
|
|
|
|
`jobs -r`
|
|
|
|
|
2016-01-07 17:31:27 +00:00
|
|
|
- Display stopped processes:
|
2016-01-04 22:17:45 +00:00
|
|
|
|
|
|
|
`jobs -s`
|