jobs - Displays status of jobs in the current session
jobs [-l|-p] job_id...
[Compaq] jobs [-n] job_id...
The C shell has a built-in version of the jobs command. If you are using the C shell, and want to guarantee that you are using the command described here, you must specify the full path /usr/bin/jobs. See the csh(1) reference page for a description of the built-in command.
Interfaces documented on this reference page conform to industry standards as follows:
jobs: XPG4, XPG4-UNIX
Refer to the
reference page for more information
about industry standards and associated tags.
Provides more information about each job listed. This information includes the job number, current job, process group ID, state and the command that formed the job. Displays only the process IDs for the process group leaders of the selected jobs. [Compaq] Displays jobs that have stopped or exited since last notified.
By default, the
utility displays the status
of all stopped jobs, running background jobs and all jobs whose status has
changed and has not been reported by the shell.
Specifies the jobs for which the status is to be displayed.
operand is given, the status information
for all jobs is displayed. The format of
is described in the
section of the
The jobs utility displays the status of jobs that were started in the current shell environment.
reports the termination status of a job,
the shell removes its process ID from the list of those ``known in the current
shell execution environment''. See the
utility does not work as expected when it
is operating in its own utility execution environment because that environment
has no applicable jobs to manipulate.
The following exit values are returned:
An error occurred.
The following environment variables affect the execution of
Provides a default value for the internationalization variables
that are unset or null. If
is unset or null, the corresponding value from the default locale is used.
If any of the internationalization variables contain an invalid setting, the
utility behaves as if none of the variables had been defined.
If set to a non-empty string value, overrides the values of
all the other internationalization variables.
Determines the locale for the interpretation of sequences
of bytes of text data as characters (for example, single-byte as opposed to
multibyte characters in arguments).
Determines the locale used to affect the format and contents
of diagnostic messages written to standard error and informative messages
written to standard output.
Determines the location of message catalogues for the processing
Commands: bg(1), csh(1), fg(1), kill(1), ksh(1), sh(1p), wait(1)