Cisco Command Line Editing Keys


Time is a key factor in the lab. I’m always monitoring my speed while configuring a router/switch even in simple scenarios and with non-Cisco devices.

Scott Morris in
IPEXPERT VoD taught me how to use Microsoft Notepad to speed up repetitive tasks.

Now it’s time to take a step forward and stop to use arrow keys so ofter, here’s some command line editing keys very useful:



Command
Description

Ctrl + A
Jumps to the first character of the command line.
Ctrl + P Previous Command
Ctrl + U Clear Line and Put in Buffer
Ctrl + W Delete Word Backwards and Put in Buffer
Ctrl + Y Paste Buffer Contents
Ctrl + E End Line Ctrl + A Beginning Line
Ctrl + X Clear Line to the Left and Put in Buffer
Ctrl + T Flip Last 2 Characters
Ctrl + F Forward Character
Ctrl + B Backward Character
Ctrl + J Return
Ctrl + L Refresh Line
Ctrl + I Refresh Line and Goto End
Ctrl + K Delete everything on the Right of cursor
Ctrl + V Allows to type control character
Ctrl + M Return
Ctrl + H Backspace Character to the Left
Ctrl + R Refresh Line
Ctrl + D Delete Character to the Right
Ctrl + C Clear line
Ctrl + N
Next Command


1
1
1
Ctrl-A
Jumps to the first character of the command line.
Ctrl-B or the left arrow key
Moves the cursor back one character.
Ctrl-C
Escapes and terminates prompts and tasks.
Ctrl-D
Deletes the character at the cursor.
Ctrl-E
Jumps to the end of the current command line.
Ctrl-F or the right arrow key Moves the cursor forward one character.
Ctrl-K
Deletes from the cursor to the end of the command line.
Ctrl-L; Ctrl-R
Repeats current command line on a new line.
Ctrl-N or the down arrow key Enters next command line in the history buffer.
Ctrl-P or the up arrow key Enters previous command line in the history buffer.
Ctrl-U; Ctrl-X
Deletes from the cursor to the beginning of the command line.
Ctrl-W
Deletes last word typed.
Esc B
Moves the cursor back one word.
Esc D
Deletes from the cursor to the end of the word.
Esc F
Moves the cursor forward one word.
Delete key or Backspace key
Erases mistake when entering a command; reenter command after using this key.