Open System Services Shell and Utilities Reference Manual (G06.25+, H06.03+)
Table Of Contents
User Commands (t - u) unalias(1)
NAME
unalias - Removes aliases
SYNOPSIS
unalias name ...
unalias -a
FLAGS
-a Removes all alias definitions from the current shell environment.
DESCRIPTION
The unalias command removes alias definitions.
Without the -a flag, the alias command removes the names specified as name ... from the shell’s
alias list.
With the -a flag, the alias command removes all alias definitions from the current shell execution
environment, but not from the shell’s alias list.
EXIT VALUES
If one of the name arguments does not represent a valid alias definition or an error occurs, the
exit value is greater than 0 (zero).
NOTES
The unalias command is a shell built-in command. It differs from the regular commands in that it
does not open a new shell process when it executes.
A general discussion of shell built-in commands and a list of the OSS shell built-in commands
are in the reference page for sh(1).
RELATED INFORMATION
Commands: alias(1), sh(1).
527188-003 Hewlett-Packard Company 9−29