rm -iBy typing
alias rm 'rm -i'the alias command would allow me to avoid typing the interactive flag, -i, every time a called the rm command.
The alias command defines a link between the first and the second arguments following the command. Whenever the first argument is entered at the command prompt, the Unix shell substitutes it with the second argument. An alias link stays in effect until the Unix session is ended or the link is "unaliased". To remove the link in my previous example, I would type unalias x. The power of this command is more easily realized when used in a Login file.
Actually, alias is not a command. It is part of the particular shell I was familar with when I wrote this manual (csh). You can think of it as a command, but if doesn't work, you are probably using a different shell.
© 1993-1998 Christopher C. Taylor