Windows 2003 server web - 54Part ILinux First StepsTo make a change to
54Part ILinux First StepsTo make a change to your prompt permanent, add the value of PS1to your .bashrcfile in your home directory (assuming that you are using the bash shell). There mayalready be a PS1value in that file that you can modify. Adding Environment VariablesYou may consider adding a few environment variables to your .bashrcfile. Thesecan help make working with the shell more efficient and effective: .TMOUT Sets how long the shell can be inactive before bash automaticallyexits. The value is the number of seconds for which the shell has not receivedinput. This can be a nice security feature, in case you leave your desk while youare still logged in to Linux. So as not to be logged off while you are working, youmay want to set the value to something like TMOUT=1800(to allow 30 minutesof idle time). .PATH As described earlier, the PATHvariable sets the directories that aresearched for commands you use. If you often use directories of commandsthat are not in your PATH, you can permanently add them. To do this, add aPATHvariable to your .bashrcfile. For example, to add a directory called/getstuff/bin, add the following: PATH=$PATH:/getstuff/bin ; export PATHThis example first reads all the current path directories into the new PATH($PATH), adds the /getstuff/bindirectory, and then exports the new PATH. Some people add the current directory to their PATHby adding a directory identi- fied simply as a dot (.), as follows: PATH=.:$PATH ; export PATHThis lets you always run commands in your current directory (which people may beused to if they have used DOS). However, the security risk with this procedure is thatyou could be in a directory that contains a command that you don t intend to runfrom that directory. For example, a hacker could put an lscommand in a directorythat, instead of listing the content of your directory, does something devious. .WHATEVER You can create your own environment variables to provide short- cuts in your work. Choose any name that is not being used and assign a usefulvalue to it. For example, if you do a lot of work with files in the /work/time/ files/info/memosdirectory, you could set the following variable: M=/work/time/files/info/memos ; export MYou could make that your current directory by typing cd $M. You could run aprogram from that directory called hotdog by typing $M/hotdog. You couldedit a file from there called bun by typing vi $M/bun. Caution07_
Note: In case you are looking for affordable webhost to host and run your servlet application check Vision ecommerce web hosting services