Shortcut keys consist of user-defined and system shortcut keys. After understanding the classification of shortcut keys, you can use shortcut keys quickly and accurately.
Shortcut keys in the system are classified into two types:
User-defined shortcut keys: You can define shortcut keys: Ctrl+G, Ctrl+L, Ctrl+O, and Ctrl+U. You can associate each shortcut key with any command. When you use a shortcut key, the system automatically runs the corresponding command. For details, see Defining Shortcut Keys.
System shortcut keys: They provide fixed functions and cannot be defined by users. Table 1 describes system shortcut keys.
Different terminal software defines shortcut keys differently. Therefore, the shortcut keys on a terminal may be different from those listed in this section.
Key |
Function |
---|---|
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. |
CTRL_] |
Ends the connections for incoming calls or redirects the connection. |
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. |