Cancelling a command alias

To cancel a command alias during your current login session use the command:

   unalias alias_name

For example:

   unalias print

This cancels the command alias print for you current login session.

If the alias name is the same as a command name escape the alias name to temporarily override the alias. For example:

   alias rm='rm-1'
   rm *.ps
   toc.ps: ? n
   .....
   \
   rm *.ps

You will have to remove the alias definition from your shell startup file if you want to cancel the alias permanently.


Top document