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