2018-12-17 01:39:33 +00:00
jobs - print currently running jobs
2019-01-03 04:10:47 +00:00
===================================
2018-12-17 01:39:33 +00:00
2018-12-18 01:58:24 +00:00
Synopsis
--------
2018-12-16 21:08:41 +00:00
jobs [OPTIONS] [PID]
2018-12-18 01:58:24 +00:00
2018-12-16 21:08:41 +00:00
2018-12-19 02:44:30 +00:00
Description
2019-01-03 04:10:47 +00:00
-----------
2018-12-16 21:08:41 +00:00
2018-12-19 20:02:45 +00:00
`` jobs `` prints a list of the currently running <a href="index.html#syntax-job-control">jobs</a> and their status.
2018-12-16 21:08:41 +00:00
jobs accepts the following switches:
2018-12-19 20:02:45 +00:00
- `` -c `` or `` --command `` prints the command name for each process in jobs.
2018-12-16 21:08:41 +00:00
2018-12-19 20:02:45 +00:00
- `` -g `` or `` --group `` only prints the group ID of each job.
2018-12-16 21:08:41 +00:00
2018-12-19 20:02:45 +00:00
- `` -l `` or `` --last `` prints only the last job to be started.
2018-12-16 21:08:41 +00:00
2018-12-19 20:02:45 +00:00
- `` -p `` or `` --pid `` prints the process ID for each process in all jobs.
2018-12-16 21:08:41 +00:00
2018-12-19 20:02:45 +00:00
- `` -q `` or `` --quiet `` prints no output for evaluation of jobs by exit code only.
2018-12-16 21:08:41 +00:00
On systems that supports this feature, jobs will print the CPU usage of each job since the last command was executed. The CPU usage is expressed as a percentage of full CPU activity. Note that on multiprocessor systems, the total activity may be more than 100\%.
2018-12-19 20:02:45 +00:00
The exit code of the `` jobs `` builtin is `` 0 `` if there are running background jobs and `` 1 `` otherwise.
2018-12-16 21:08:41 +00:00
2018-12-19 02:44:30 +00:00
no output.
2019-01-03 04:10:47 +00:00
----------
2018-12-16 21:08:41 +00:00
2018-12-19 02:44:30 +00:00
Example
2019-01-03 04:10:47 +00:00
-------
2018-12-16 21:08:41 +00:00
2018-12-19 20:02:45 +00:00
`` jobs `` outputs a summary of the current jobs.