unalias — Remove alias definitions
Format
unalias name …
unalias –a
tcsh shell: unalias pattern
Description
unalias removes each alias name from the current shell execution environment.
In the tcsh shell, unalias removes
all aliases whose names match pattern. For
example,
unalias *
removes
all aliases. It is not an error for nothing to be unaliased. For more
information, see tcsh — Invoke a C shell.Options
- –a
- Removes all aliases in the current shell execution environment.
Localization
unalias uses
the following localization environment variables:
- LANG
- LC_ALL
- LC_CTYPE
- LC_MESSAGES
- NLSPATH
See Localization for more information.
Usage notes
unalias is a built-in shell command.
Exit values
- 0
- Successful completion
- 1
- There was an alias that could not be removed
- 2
- Failure due to an incorrect command-line option or there were two aliases that could not be removed
- >2
- Tells the number of aliases that could not be removed
Portability
POSIX.2 User Portability Extension, X/Open Portability GuideX/Open Portability Guide.
Related information
alias, sh, tcsh