alias-config

Launches the alias configuration mode, enabling you to define aliases.

Syntax

alias-config
no alias-config [ alias | user username ]

Parameters

alias
(For the no option) Deletes all global aliases.
user username
(For the no option) Deletes all aliases defined for the specified user.

Modes

Global configuration mode

Usage Guidelines

From the alias configuration mode—which you access by entering this command—you can manage global aliases. From that mode, you can also access the user-alias configuration mode for a specified user, from which you can manage aliases for that user.

To delete all global aliases, use the no alias-config alias form of this command.

To delete all aliases defined for a specified user, use the no alias-config user form of this command.

Examples

The following example accesses the alias configuration mode. It then defines ck as a global alias for the show clock command.

device# configure terminal
device(config)# alias-config
device(config-alias-config)# alias ck "show clock"

The following example deletes all aliases defined for the user jdoe.

device# configure terminal
device(config)# no alias-config user jdoe