Debian GNU/Linux : Guide to Installation and Usage by John Goerzen;Ossama Othman
page 90 of 298 (30%)
page 90 of 298 (30%)
![]() | ![]() |
|
$
Note the last two lines. The next to last is the job information, and then you have a shell prompt. bash assigns a job number to each command line you run from the shell. This allows you to refer to the process easily. In this case, man cp is job number 1, displayed as [1]. The + means that this is the last job you had in the foreground. bash also tells you the current state of the job - Stopped - and the job's command line. There are many things you can do with jobs. With man cp still suspended, try the following commands: man ls Starts a new job. Ctrl-z Suspends the man ls job; you should see its job information. man mv Starts yet another job. Ctrl-z Suspends it. jobs Asks bash for a display of current jobs. The result looks like this: {$} jobs |
|