There are two methods. One is permanent; the other overrides an alias for a single command. To remove an alias permanently use the unalias command. This accepts *?[ ] wildcards to match the defined aliases.
# Removes aliases called: % unalias myscript # myscript % unalias kap_* # kap_ followed by zero or more characters % unalias compres? # compres followed by a single character % unalias [f-hz][2-5] # One of f, g, h, or z then an integer # between 2 and 5 inclusive
To override an alias, precede the alias with backslash. So suppose you have an alias to prevent you accidently removing a file as shown below.
% alias rm rm -iIn a script where you know that you want to remove a file, you don't want the script to seek confirmation. So suppose you want to delete file myfile, then you would have a line like
\rm myfilein your script.