blank.gif (43 bytes)

Church Of The
Swimming Elephant


jobs [-l]

List the active jobs under job control.  See job control commands.

The -l option lists process IDs, in addition to the normal information.

The shell associates a numbered job with each command sequence to keep track of those commands that are running in the background or have been stopped with TSTP signals (typically CTRL-z). When a command or command sequence (semicolon separated list) is started in the background using the & metacharacter, the shell displays a line with the job number in brackets and a list of associated process numbers:

[1] 1234
To see the current list of jobs, use the jobs built-in command. The job most recently stopped (or put into the back-ground if none are stopped) is referred to as the current job and is indicated with a ‘+’. 

The previous job is indicated with a ‘-‘; when the current job is terminated or moved to the foreground, this job takes its place (becomes the new current job).

To manipulate jobs, refer to the bg , fg , kill , stop , and % built-in commands.

A reference to a job begins with a ‘%’. By itself, the percent-sign refers to the current job.

Reference Description
 % %+ %% The current job.
 %minus; The previous job.
%j Refer to job j as in: ‘kill -9 %j’. j can be a job number, or a string that uniquely specifies the command line by which it was started; ‘fg %vi’ might bring a stopped vi job to the foreground, for instance.
%?string Specify the job for which the command line uniquely contains string

A job running in the background stops when it attempts to read from the terminal. Background jobs can normally produce output, but this can be suppressed using the ‘stty tostop’ command.



Protect yourself from cyberstalkers, identity thieves, and those who would snoop on you.
Stop spam from invading your inbox without losing the mail you want. We give you more control over your e-mail than any other service.
Block popups, ads, and malicious scripts while you surf the net through our anonymous proxies.
Participate in Usenet, host your web files, easily send anonymous messages, and more, much more.
All private, all encrypted, all secure, all in an easy to use service, and all for only $5.95 a month!

Service Details

Have you gone to church today?
All pages ©1999, 2000, 2001, 2002, 2003 Church of the Swimming Elephant unless otherwise stated
Church of the Swimming Elephant©1999, 2000, 2001, 2002, 2003 is a wholly owned subsidiary of Packetderm, LLC.

Packetderm, LLC
210 Park Ave #308
Worcester, MA 01609