The shell keeps a table of all current jobs and their numbers.
To see a listing of the table type:
jobs
The screen displays something similar to this, if you have
jobs running:
[1] + Running lp processes [2] - Done ps -ef | sort > processes |
The job number is displayed between square brackets ([ ]).
+ marks a job
as the current job and - marks
a job as the previous job. Done
or Running or
Stopped indicate
the current status of the job. In this example, lp processes
is the actual command line and is telling the system to print the
processes file
to the line printer.