Turning off an alias
If you have set up an alias like the one previously described for rm, you may find that you do not want
the alias to apply in some situations. For example, when you delete
a huge number of files, you probably do not want rm to ask
if it is okay to delete each one. In this situation, you have several
options:
- Get rid of the alias entirely. The command:
gets rid of the rm alias for the session. After this, when you enter rm, you get the real rm command.unalias rm
- Escape the alias. If you put a backslash in front of an alias,
the shell uses the real command rather than the alias. For example:
\rm file
- Specify the full pathname. For example:
tells the shell to run the program in /bin/rm. The shell does not perform alias substitution when you specify a command as a pathname./bin/rm file
These alternatives should help you get around options that you have automatically associated with a command.