After acquiring knowledge of defined, undefined, and reserved shortcut keys, you can use a shortcut key to run a command assigned to this shortcut key, and you can also run the hotkey command to assign a command to a shortcut key.
You can use a shortcut key as an alternative to a command. After you press a shortcut key, the system displays the complete command associated with the shortcut key. The shortcut key functions the same as the associated command.
The actual command output varies according to the device. The command output here is only an example.
<HUAWEI> display hotkey
----------------- HOTKEY -----------------
=Defined hotkeys=
Hotkeys Command
CTRL_G display current-configuration
CTRL_L display ip routing-table
CTRL_O undo debugging all
=Undefined hotkeys=
Hotkeys Command
CTRL_U NULL
ESC_G NULL
ESC_H NULL
ESC_I NULL
ESC_J NULL
=System hotkeys=
Hotkeys Function
CTRL_A Move the cursor to the beginning of the current line.
CTRL_B Move the cursor one character left.
CTRL_C Stop current command function.
CTRL_D Erase current character.
CTRL_E Move the cursor to the end of the current line.
CTRL_F Move the cursor one character right.
CTRL_H Erase the character left of the cursor.
CTRL_K Kill outgoing connection when connecting.
CTRL_N Display the next command from the history buffer.
CTRL_P Display the previous command from the history buffer.
CTRL_R Redisplay the current line.
CTRL_T Kill outgoing connection.
CTRL_V Paste text from the clipboard.
CTRL_W Delete the word left of the cursor.
CTRL_X Delete all characters up to the cursor.
CTRL_Y Delete all characters after the cursor.
CTRL_Z Return to the user view.
CTRL_] Kill incoming connection or redirect connection.
ESC_B Move the cursor one word back.
ESC_D Delete remainder of word.
ESC_F Move the cursor forward one word.
ESC_N Move the cursor down a line.
ESC_P Move the cursor up a line.
ESC_< Specify the beginning of clipboard.
ESC_> Specify the end of clipboard.
Item | Description |
---|---|
HOTKEY | Indicates shortcut keys. |
CTRL_G | Displays the current configuration. |
CTRL_L | Displays the IP routing table. |
CTRL_O | Disables all debugging. |
CTRL_U | Undefined. |
CTRL_A | Moves the cursor to the beginning of the current line. |
CTRL_B | Moves the cursor back one character. |
CTRL_C | Stops the running function. |
CTRL_D | Deletes the character at the cursor. |
CTRL_E | Moves the cursor to the end of the current line. |
CTRL_F | Moves the cursor forward one character. |
CTRL_H | Deletes the character on the left of the cursor. |
CTRL_K | Ends the connections for outgoing calls. |
CTRL_N | Displays the next command in the historical command buffer. |
CTRL_P | Displays the previous command in the historical command buffer. |
CTRL_R | Redisplays information in the current line. |
CTRL_T | Ends the connections for outgoing calls. |
CTRL_V | Pastes the text of the clipboard. |
CTRL_W | Deletes the word on the left of the cursor. |
CTRL_X | Deletes all characters on the left of the cursor. |
CTRL_Y | Deletes all characters on the right of the cursor. |
CTRL_Z | Returns to the user view. |
ESC_B | Moves the cursor back one word. |
ESC_D | Deletes the word on the right of the cursor. |
ESC_F | Moves the cursor forward one word. |
ESC_N | Moves the cursor to the next line. |
ESC_P | Moves the cursor to the previous line. |
ESC_< | Locates the cursor at the start of text in the clipboard. |
ESC_> | Locates the cursor at the end of text in the clipboard. |
ESC_G | Undefined. |
ESC_H | Undefined. |
ESC_I | Undefined. |
ESC_J | Undefined. |
Defined hotkeys | Indicates defined shortcut keys. |
Undefined hotkeys | Indicates undefined shortcut keys. |
System hotkeys | Indicates reserved shortcut keys. |
CTRL_] | Ends the connections for incoming calls or redirects the connection. |