| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Aliases Aliases allow a string to be substituted for another string in the command line. This allows for some very useful replacements of commands. Entering the command alias by itself will show the current set of available alias. The following set of aliases will cause the rm command, the mv command, and the cp command always to function in interactive mode: alias rm=rm -i alias mv=mv -i alias cp=cp -i The net result of these aliases is to cause the command plus the -i option to be substituted when the basic command is used. These very useful way aliases can be used to help prevent one from accidentally deleting files. In fact, aliases such as these can be placed at the end of the .bashrc file in each users home directory. These aliases will automatically be set up every time that user logs in. Which brings us to our next subject.
Home - Table Of Contents - Contact Us CertiGuide to A+ (A+ 4 Real) (http://www.CertiGuide.com/apfr/) on CertiGuide.com Version 1.0 - Version Date: March 29, 2005 Adapted with permission from a work created by Tcat Houser et al. CertiGuide.com Version © Copyright 2005 Charles M. Kozierok. All Rights Reserved. Not responsible for any loss resulting from the use of this site. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||