jobs – command

About jobs:
Lists the status of all running jobs.

Syntax:
jobs [-lnprs] [JOBSPEC …]

Options:
-l – lists process IDs in addition to the normal information.
-n – lists only processes that have changed status since last notification
-p – lists process IDs only
-r – restrict output to running jobs
-s – restrict output to stopped jobs

Examples:
jobs
Displays all running jobs. Output is similar to the following:
[1] + Stopped (user) top
Here, the job number 1 has been suspended by the user, and the process in this case is the top utility.

jobs -l
When supplied the -l option, jobs displays process IDs in addition to job number, similar to the following output:
[3] 16882 Running ./chsearchproc (wd: ~/public_html/cgi-bin/chsearch)

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s