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 or Ctrl+X |
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 executes partial commands. |
Esc B |
Moves the cursor back one word. |
Esc F |
Moves the cursor forward one word. |
Note
In privileged EXEC mode, use the show history command to list the commands most recently entered. The device retains the history of the last 1000 commands entered for the current session.