Occasionally, you may have multiple jobs running or suspended and need a quick update about the jobs' status. Using jobs, you can find out whether a job is running, stopped, or waiting for input (with tty, for example), as shown in Code Listing 9.5.
To check job status with jobs:
jobs
Tip
Depending on your shell, you can often kill jobs with kill followed by a % and the job number or command nameāfor example, you could kill the ftp job in Code Listing 9.5 with kill %ftp or kill %1. See Deleting processes with kill later in this chapter for more on killing jobs.
[ejr@hobbes ejr]$ jobs [1]- Running ftp calvin.raycomm.com & [2]+ Stopped (tty input) telnet [3] Stopped (signal) lynx http://www.raycomm.com/ [ejr@hobbes ejr]$ |
3.133.141.6