global configuration mode, you can use alias ? to list all
the modes under which you can configure alias for
commands.
Ruijie(config)# alias ?
aaa-gs AAA server group mode
acl acl configure mode
bgp Configure bgp Protocol
config globle configure mode
......
The alias also has its help information that is displayed
after * in the following format:
*command-alias=original-command
For example, in the privileged EXEC mode, the default
alias s stands for show. You can enter s? to query the key
words beginning with s and the help information of the
alias.
Ruijie#s?
*s=show show start-chat start-terminal-service
If an alias represents more than one word, the command
will be displayed in brackets. For example, if you set sv
stand for show version in the privileged EXEC mode,
then:
Ruijie#s?
*s=show *sv="show version" show start-chat
start-terminal-service
The alias must begin with the first letter of the command.
The first letter of the command cannot be a space. The
space before the command cannot be used as a valid
alias.
Ruijie# s?
show start-chat start-terminal-service
The command alias also has its help information. For
example, if the alias ia represents ip address in the
interface configuration mode, then:
Ruijie(config-if)#ia ?
A.B.C.D IP address
dhcp IP Address via DHCP
Ruijie(config-if)# ip address
The above help information lists the parameters of ip
address and shows the actual command name.
You must enter an entire alias; otherwise it cannot be
recognized.
Use the show aliases command to show the aliases
setting in the system.