Prev | Current Page 207 | Next

Christopher Negus

"Linux Bible, 2008 Edition: Boot up to Ubuntu, Fedora, KNOPPIX, Debian, openSUSE, and 11 Other Distributions"

It??™s easy to forget you have a program in the background,
and you will lose your data if you log out or the computer reboots later on.
To refer to a background job (to cancel it or bring it to the foreground), use a percent sign (%) followed
by the job number. You can also use the following to refer to a background job:
 %??”Refers to the most recent command put into the background (indicated by the plus
sign when you type the jobs command). This action brings the command to the foreground.
 %string??”Refers to a job where the command begins with a particular string of characters.
The string must be unambiguous. (In other words, typing %vi when there are
two vi commands in the background results in an error message.)
 %?string??”Refers to a job where the command line contains a string at any point.
The string must be unambiguous or the match will fail.
 %--??”Refers to the previous job stopped before the one most recently stopped.
If a command is stopped, you can start it running again in the background using the bg command.
For example, take job 5 from the jobs list in the previous example:
[5]+ Stopped nroff -man man4/* >/tmp/man4
Type the following:
$ bg %5
After that, the job runs in the background. Its jobs entry appears as follows:
[5] Running nroff -man man4/* >/tmp/man4 &
Working with the Linux File System
The Linux file system is the structure in which all the information on your computer is stored.


Pages:
195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219