[ Previous | Next | Table of Contents | Index | Library Home | Legal | Search ]

Commands Reference, Volume 5


unalias Command

Purpose

Removes alias definitions.

Syntax

unalias  -a

unalias AliasName ...

Description

The unalias command removes the definition for each alias name specified, or removes all alias definitions if the -a flag is used. Alias definitions are removed from the current shell environment.

Since the unalias command affects the current shell execution environment, it is provided as a Korn shell or POSIX shell regular built-in command.

Flags


-a Removes all alias definitions from the current shell environment.

Exit Status

The following exit values are returned:

0 Successful completion.
>0 One of the alias names specified did not represent a valid alias definition, or an error occurred.

Files


/usr/bin/ksh Contains the Korn shell unalias built-in command.
/usr/bin/unalias Contains the unalias command.

Related Information

The alias command, csh command, ksh command.


[ Previous | Next | Table of Contents | Index | Library Home | Legal | Search ]