|
|
To find out what jobs are running under your current shell, use the jobs(C) command, as follows:
$ jobs
[2] + Running tar tv3 &
[1] - Running find / -name README -print > logfile &
$
A ``+'' in the second column signifies that the job has higher
priority than a ``-''. The third column contains the state of
the job; whether it is running, paused, waiting for input, or
stopped. Finally, we see the command line that created the current
job.
Use the -l option to jobs to display the PID after the job number. To limit the display to PID only, use the -p option.
$jobs -l
[2] + 5236 Running xrep *.s >bar & [1] - 5195 Running checkmac *.s >foo& $jobs -p
5236 5195 $