tldr/pages/linux/jobs.md

28 lines
397 B
Markdown
Raw Normal View History

2016-01-05 01:17:45 +03:00
# jobs
> BASH builtin for viewing information about processes spawned by the current shell.
- View jobs spawned by the current shell:
2016-01-05 01:17:45 +03:00
`jobs`
- List jobs and their process ids:
2016-01-05 01:17:45 +03:00
`jobs -l`
- Display information about jobs with changed status:
2016-01-05 01:17:45 +03:00
`jobs -n`
- Display process id of process group leader:
2016-01-05 01:17:45 +03:00
`jobs -p`
- Display running processes:
2016-01-05 01:17:45 +03:00
`jobs -r`
- Display stopped processes:
2016-01-05 01:17:45 +03:00
`jobs -s`