Skip to content

Instantly share code, notes, and snippets.

@roulette6
Last active October 30, 2016 03:35
Show Gist options
  • Save roulette6/c58dbfcbc8da19570ba1a476d0bb41c4 to your computer and use it in GitHub Desktop.
Save roulette6/c58dbfcbc8da19570ba1a476d0bb41c4 to your computer and use it in GitHub Desktop.
Command key combinations that can be used in both EXEC and configuration modes
Shortcut Description
Ctrl-B More cursor one char left, good for multi-line commands
Ctrl-C Cancels the command and returns to the command prompt (EXEC mode)
Ctrl-D Deletes the character at the cursor
Ctrl-F Moves the cursor one character to the right
Ctrl-G Exits to the previous command mode without removing the command string
Ctrl-K Deletes all characters from the cursor to the end of the command line
Ctrl-L Redisplays the current command line
Ctrl-N Displays the next command in the command history
Ctrl-O Clears the terminal screen
Ctrl-P Displays the previous command in the command history
Ctrl-T Transposes the character to the left of the cursor with the character located to the right of the cursor
Ctrl-U Deletes all characters from the cursor to the beginning of the command line
Ctrl-V Removes any special meaning for the following keystroke. For example, press Ctrl-V before entering a question mark (?) in a regular expression
Ctrl-W Deletes the word to the left of the cursor
Ctrl-X, H Lists the history of commands you have entered. When using this key combination, press and release the Ctrl and X keys together before pressing H
Ctrl-Y Recalls the most recent entry in the buffer (press keys simultaneously)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment