Web hosting control panel - 60Part ILinux First StepsUsing Foreground and Background CommandsContinuing

60Part ILinux First StepsUsing Foreground and Background CommandsContinuing with the example, you can bring any of the commands on the jobs list tothe foreground. For example, to edit myfileagain, type$fg %1As a result, the vicommand opens again, with all text as it was when you stoppedthe vi job. Before you put a text processor, word processor, or similar program in the back- ground, make sure you save your file. It s easy to forget you have a program in thebackground and you will lose your data if you log out or the computer rebootslater on. To refer to a background job (to cancel or bring it to the foreground), use a percentsign (%) followed by the job number. You can also use the following to refer to abackground job: .% Refers to the most recent command put into the background (indicatedby the plus sign). This action brings the command to the foreground. .%string Refers to a job where the command begins with a particularstringof characters. The stringmust be unambiguous. (In other words, typing%viwhen there are two vicommands in the background results inanerror message.) .%?string Refers to a job where the command line contains a stringat anypoint. 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 bgcommand. For example, take job number 5 from the jobs list in the previous example: [5]+ Stopped nroff -man man4/* >/tmp/man4Type the following: $ bg %5After 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 SystemThe Linux file system is the structure in which all the information on your computeris stored. Files are organized within a hierarchy of directories. Each directory cancontain files, as well as other directories. Caution07_
Note: If you are looking for reliable webhost to maintain and run your java application check Vision java hosting services

Leave a Reply