builtin
unalias
Remove a named alias; -a removes all definitions in this shell.
Formal Syntax & Structure
bash syntaxbash
unalias nameReturn Value
exit status
Remove a named alias; -a removes all definitions in this shell.
Working Example
Example Snippetbash
shopt -s expand_aliasesalias bmhello='printf "%s\n" hello'bmhellounalias bmhelloif alias bmhello >/dev/null 2>&1; then exit 1; fi