Abbreviating commands, Configuring and using command keyword aliases, Usage guidelines – H3C Technologies H3C S12500 Series Switches User Manual
Page 18: Configuration procedure, Configuring and using hotkeys

6
Abbreviating commands
You can enter a command line quickly by entering incomplete keywords that can uniquely identify the
complete command. In user view, for example, commands starting with an s include startup
saved-configuration and system-view. To enter system view, you only need to enter sy. To set the
configuration file to be used at the next startup, you can enter st s.
You can also press Tab to have an incomplete keyword automatically completed.
Configuring and using command keyword aliases
The command keyword alias function allows you to replace the first keyword of a non-undo command or
the second keyword of an undo command with your preferred keyword when you execute the command.
For example, if you configure show as the alias for the display keyword, you can enter show to execute
a display command.
Usage guidelines
•
After you successfully execute a command by using a keyword alias, the system saves the keyword,
instead of its alias, to the running configuration.
•
If you press Tab after entering part of an alias, the keyword is displayed.
•
If a string you entered partially matches a keyword and an alias, the command indicated by the
alias is executed. To execute the command indicated by the keyword, enter the complete keyword.
•
If you enter a string that partially matches multiple aliases, the system gives you a prompt.
Configuration procedure
To configure a command keyword alias:
Step Command
Remarks
1.
Enter system view.
system-view N/A
2.
Enable the command
keyword alias function.
command-alias enable
By default, the command keyword
alias function is disabled.
3.
Configure a command
keyword alias.
command-alias mapping cmdkey
alias
By default, no command keyword
alias is configured.
You must enter the cmdkey and
alias arguments in their complete
form.
Configuring and using hotkeys
To facilitate CLI operation, the system defines some hotkeys and provides five configurable command
hotkeys. Pressing a command hotkey equals entering a command. For system-reserved hotkeys, see
To configure hotkeys:
Step Command
Remarks
1.
Enter system view.
system-view N/A
- H3C S12500-X Series Switches H3C S9800 Series Switches H3C S9500E Series Switches H3C S5560 Series Switches H3C S5130 Series Switches H3C S5120 Series Switches H3C SR8800 H3C SR6600-X H3C SR6600 H3C MSR 5600 H3C MSR 50 H3C MSR 3600 H3C MSR 30 H3C MSR 2600 H3C MSR 20-2X[40] H3C MSR 20-1X H3C MSR 930 H3C MSR 900 H3C WX3000E Series Wireless Switches H3C WX5500E Series Access Controllers H3C WX3500E Series Access Controllers H3C WX2500E Series Access Controllers H3C WX6000 Series Access Controllers H3C WX5000 Series Access Controllers H3C WX3000 Series Unified Switches H3C LSWM1WCM10 Access Controller Module H3C LSUM3WCMD0 Access Controller Module H3C LSUM1WCME0 Access Controller Module H3C LSWM1WCM20 Access Controller Module H3C LSQM1WCMB0 Access Controller Module H3C LSRM1WCM2A1 Access Controller Module H3C LSBM1WCM2A0 Access Controller Module H3C WA3600 Series Access Points H3C WA2600 Series WLAN Access Points H3C SecPath F5020 H3C SecPath F5040 H3C VMSG VFW1000 H3C S10500 Series Switches