2016-01-04 22:17:45 +00:00
|
|
|
# jobs
|
|
|
|
|
|
|
|
> BASH builtin for viewing information about processes spawned by the current shell.
|
|
|
|
|
2016-01-07 17:31:27 +00:00
|
|
|
- View jobs spawned by the current shell:
|
2016-01-04 22:17:45 +00:00
|
|
|
|
|
|
|
`jobs`
|
|
|
|
|
2016-01-07 17:31:27 +00: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`
|
|
|
|
|
2016-01-07 17:31:27 +00:00
|
|
|
- Display process id of process group leader:
|
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`
|