alias
No aliases are defined.
Privileged EXEC mode
An alias saves typing in a longer command that you commonly use. For example, you
can create an alias called
shoro for the CLI command
show ip route. Then when you enter
shoro at the command prompt, the
show ip route command is issued.
Entering the
alias command with no parameters displays the currently configured aliases on the device.
The
no form of the command or the
unalias command followed by the alias name removes an alias.
The following example creates an alias called
shoro for the CLI command
show ip route, enter the
alias shoro = show ip route command.
device(config)# alias shoro = show ip route
The following example uses the command
copy running-config
with the appropriate parameters to create an alias called
wrsbc.
device(config)# alias wrsbc = copy running-config tftp 10.10.10.10 test.cfg
The following example removes the wrsbc alias from the configuration.
device(config)# no alias wrsbc
The following example is an alternate method of removing the alias.
device(config)# unalias wrsbc