next up previous contents
Next: Batch jobs and Calendar Up: The Shell (csh, tcsh, Previous: Command history (history)   Contents

Jobs (jobs, kill, ps, ^Z, fg, bg)

Since UNIX is a multi-tasking operating system, you can run several commands at once. All shells except the Bourne shell allow you to inquire about, stop, or bring to the foreground any job you have started.

To find out about the jobs you have, type jobs. You will get a message like the following:

malama% jobs
[1] - Stopped     vi params
[2] + Stopped     talk manson
malama%

The ``[n]'' is the job number. The plus sign, corresponding to job two, means this is the current job. A minus sign indicates the next job. The message ``stopped'' implies that the job is currently suspended and is waiting until you call it up. Other possibilities are ``running'', if the job is running in the background, or ``tty input'' if it is waiting get input from the terminal. In the latter case, bring the job into the foreground and type whatever is necessary. Note that you may not get a prompt which you would have had if the job had been running in the foreground all along.


next up previous contents
Next: Batch jobs and Calendar Up: The Shell (csh, tcsh, Previous: Command history (history)   Contents
h.stilmack@jach.hawaii.edu