1
Basic CLI commands
alias
Use
alias
to configure a command alias.
Use
undo alias
to remove a command alias.
Syntax
alias
alias command
undo alias
alias
Default
The system defines a set of command aliases, as listed in
Table 1 System-defined command aliases
Alias Command
string
access-list acl
end return
erase delete
exit quit
hostname sysname
logging info-center
no undo
show display
write save
Views
System view
Predefined user roles
network-admin
mdc-admin
Parameters
alias
: Specifies an alias, a case-sensitive string of 1 to 20 characters. An alias cannot be
alias
or
contain spaces.
command
: Specifies a command string. Make sure the command string meets the syntax
requirements.
Usage guidelines
You can configure an alias for a command or the starting keywords of commands, and use the alias
to execute the command or commands.
For example, if you configure the alias
siprt
for
display ip routing-table
, you can enter
siprt
to
execute the
display ip routing-table
command. If you configure the alias
ship
for
display ip
, you
can use
ship
to execute all commands starting with
display ip
:
•
Enter
ship
routing-table
to execute the
display ip routing-table
command.