12.2 Other Ways to Refer to JobsIf you have several jobs in the background, you can refer to them by job number, as listed by the jobs (12.1 ) command. For example: % You don't need to look up the job number to select a job, though. Instead, you can specify a job by name. Simply specify the command name instead of the job number after the percent sign. For example, the commands above could have been issued as: % If you use % to kill the nroff job shown in the example above. There are a couple of other shortcuts as well. A job number by itself is the same as the fg command followed by that job number. Why type: % when: % will do? You can put a stopped job into the background in a similar way. For example: % will put job number 2 into the background. Of course, it's also true that typing The only problem is that the current job isn't always what you expect (12.3 ) . - |
|