Jobs Command:
jobs: Jobs command is used to list the jobs that you are
running in the background and in the foreground. If the prompt is returned with
no information no jobs are present. All shells are not capable of running this
command. This command is only available in the csh, bash, tcsh, and ksh shells.
Options:
-p Display the PID of process group
leader
-l Provides
more information about each job listed. This information includes the job
number, current job, process group ID, state, and the command that initiated
the job.
-n Display
only jobs that have stopped or exited since last notified
-r Display running jobs
-s Display
stopped jobs
Each job will be listed with a number; to resume a job,
enter % (percent sign) followed by the
number of the job. For example, To restart job number two
$ %2