undo command-alias mapping cmdkey
View
System view
Default Level
2: System level
Parameters
cmdkey: The complete form of the first keyword of a command for which an alias will
be configured.
alias: Specifies the command alias, which cannot be the same as the first keyword of
an existing command.
Description
Use the command-alias mapping command to configure command aliases.
Use the undo command-alias mapping command to delete command aliases.
By default, a command does not have an alias.
Examples
Example 1:
Configure command aliases by specifying show as the replacement of the display
keyword.
<Sysname> system-view
[Sysname] command-alias mapping display show
After implementing the above configuration, the display commands have their aliases.
For example, if the original command is display clock, its alias is now show clock and
the alias can be input to view the system time and date.
Example 2:
Delete the command aliases by canceling the replacement of the display keyword.
<Sysname> system-view
[Sysname] undo command-alias mapping display
command-privilege level
Syntax
command-privilege level level view view command
undo command-privilege view view command
View
System view
12