![](/images/new-backgrounds/1319271/319271263x1.webp)
Configuring and using command keyword aliases
The command keyword alias function allows you to replace the first keyword of a
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. | N/A | |
|
|
|
|
2. | Enable the command | By default, the command keyword alias | |
| keyword alias function. | function is disabled. | |
|
| ||
|
|
|
|
|
|
| By default, no command keyword alias is |
3. | Configure a command | configured. | |
| keyword alias. | cmdkey alias | You must enter the cmdkey and alias |
arguments in their complete form.
Configuring and using hotkeys
To facilitate CLI operation, the system defines the hotkeys shown in Table 24 and provides five configurable command hotkeys. Pressing a command hotkey is the same as entering a command.
To configure a command hotkey:
Step |
| Command | Remarks |
1. | Enter system view. | N/A | |
|
|
|
|
|
|
| By default: |
|
|
| • Ctrl+G is assigned the display |
|
|
| |
|
| hotkey { CTRL_G CTRL_L | • Ctrl+L is assigned the display ip |
2. | Configure hotkeys. | CTRL_O CTRL_T CTRL_U } | |
|
| command | • Ctrl+O is assigned the undo debugging all |
|
|
| command. |
• No command is assigned to Ctrl+T or Ctrl+U.
126