tldr/pages/linux/jobs.md

28 lines
397 B
Markdown
Raw Normal View History

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