2005-09-20 21:31:55 +08:00
|
|
|
\section jobs jobs - print currently running jobs
|
|
|
|
|
|
|
|
\subsection jobs-synopsis
|
2005-12-12 07:30:01 +08:00
|
|
|
<tt>jobs [OPTIONS] [PID]</tt>
|
2005-09-20 21:31:55 +08:00
|
|
|
|
|
|
|
\subsection jobs-description Description
|
|
|
|
The <tt>jobs</tt> builtin causes fish to print a list of the currently
|
2006-01-24 07:17:06 +08:00
|
|
|
running jobs and their status.
|
2005-09-20 21:31:55 +08:00
|
|
|
|
2005-12-12 07:30:01 +08:00
|
|
|
jobs accepts the following switches:
|
|
|
|
|
2005-12-12 23:50:01 +08:00
|
|
|
- <tt>-c</tt> or <tt>--command</tt> print the command name for each process in jobs
|
2005-12-12 07:30:01 +08:00
|
|
|
- <tt>-g</tt> or <tt>--group</tt> only print the group id of each job
|
2005-12-12 23:50:01 +08:00
|
|
|
- <tt>-l</tt> or <tt>--last</tt> only the last job to be started is printed
|
2006-01-24 07:17:06 +08:00
|
|
|
- <tt>-p</tt> or <tt>--process</tt> print the process id for each process in all jobs
|
2005-12-12 07:30:01 +08: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
|
2005-09-20 21:31:55 +08:00
|
|
|
multiprocessor systems, the total activity may be more than 100\%.
|