tldr/pages/linux/jobs.md

30 lines
487 B
Markdown
Raw Normal View History

2016-01-04 22:17:45 +00:00
# jobs
> Shell builtin for viewing information about processes spawned by the current shell.
> Options other than `-l` and `-p` are exclusive to `bash`.
> More information: <https://manned.org/jobs>.
2016-01-04 22:17:45 +00:00
- 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 only process IDs:
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`