The following table lists CLI keyboard shortcuts.
Keystroke | Description |
---|---|
Ctrl+A | Moves the cursor to the beginning of the command line. |
Ctrl+B (or the left arrow key) | Moves the cursor back one character. |
Ctrl+C | Escapes and terminates command prompts and ongoing tasks (such as lengthy displays), and displays a fresh command prompt. |
Ctrl+E | Moves the cursor to the end of the command line. |
Ctrl+F (or the right arrow key) | Moves the cursor forward one character. |
Ctrl+N (or the down arrow key) | Displays commands in the history buffer with the most recent command displayed last. |
Ctrl+P (or the up arrow key) | Displays commands in the history buffer with the most recent command displayed first. |
Ctrl+U | Deletes all characters from the cursor to the beginning of the command line. |
Ctrl+W | Deletes the last word you typed. |
Ctrl+Z | Returns to privileged EXEC mode. Using Ctrl+Z in privileged EXEC mode runs partial commands. |
Esc B | Moves the cursor back one word. |
Esc F | Moves the cursor forward one word. |