This is a list of the Cisco IOS CLI shortcuts that I need to reference. I really need to practice using the Delete Buffer commands and Ctrl-R Refesh as part of my muscle memory / daily practice.
| Shortcut | Description | Mnemonic |
|---|---|---|
| Ctrl+A | Move cursor to the beginning for the line | Alpha, First letter == beginning |
| Ctrl+E | Move cursor to the end of the line | E for End |
| Ctrl+F | Move cursor forward one character | F for Forward |
| Ctrl+B | Move cursor backward | B for Backward |
| Esc+F | Moves forward one word | Always forget the escape version |
| Esc+B | Moves backwards one word | Ditto |
| Ctrl+P | Previous command | P for Previous – also up arrow |
| Ctrl+N | Next command | N for Next – also down arrow |
| Shortcut | Description | Mnemonic |
|---|---|---|
| Ctrl+W | Delete the word to the left from the cursor | W for Word |
| Ctrl+U | Delete the whole line | ?? |
| Ctrl+T | Swap or transpose the current character with the one before it | T for Transpose |
| Ctrl+K | Erase characters from the cursor to end of the line | ?? |
| Ctrl+X | Erase characters from the cursor to beginning of the line | ?? |
| Esc+D | Delete from Cursor to end of word | |
| Delete | Removes the character to the right of the cursor | |
| Backspace | Removes the character to the left of the cursor | |
| Up Arrow | Allows you to scroll forward through previous commands | |
| Down Arrow | Allows you to scroll backwards through previous commands | |
| Shortcut | Description | Mnemonic |
|---|---|---|
| Ctrl+L | Reprint the line | L for Line |
| Ctrl+R | Refresh | R for Repeat – starts a new line, with the same command shown (If the system sends a message to the screen while a command is being entered and your are not using line synchonisation |
| Tab | Command autocomplete | No Comment |
| Ctrl+C | Exit. Exit from config mode | |
| Ctrl+Z | Apply the command line and exit from config mode ie. return to privileged EXEC mode. | |
| Ctrl+Shift+6 (X) | CTRL-SHIFT-6 is one action, the X is the second action |
| Shortcut | Description | Mnemonic |
|---|---|---|
| Esc, C | Makes the letter at the cursor uppercase. | C for Capital |
| Esc, L | Changes the word at the cursor to lowercase | L for Lower |
| Esc, U | Makes letters from the cursor to the end of the word uppercase. | U for Uppercase |
| Shortcut | Description | Mnemonic |
|---|---|---|
| The buffer stores the last ten items that have been deleted using Ctrl-K, Ctrl-U, or Ctrl-X | ||
| Ctrl-Y | Paste the most recent entry in the delete buffer | Y for “Yank” as in Yank from buffer |
| Esc-Y | Paste the Previous entry in the history buffer | Y for “Yank” as in Yank from buffer |
Note that the delete buffer is very useful for times when you have created complex and difficult names in IOS. If you use a naming convention for QoS CLI such as 100M-5Mpri-15mbAF21 then this is a hugely useful feature for show and configuration commands.
Other posts in the series
- Cisco IOS CLI Regex: sh ip bgp in
- IOS CLI Tip: More accurate pipe commands
- Cisco Nexus NXOS and Fixing broken “switchto” syntax with alias
- show ip eigrp topology all
- Cisco IOS CLI Shortcuts (This post)
- The poor man's IOS Traffic Generator
- IOS: "terminal monitor" on, off - logging to your terminal
- IOS: Console, Terminal, Monitor, VTY - what is what ?
- IOS: Clearing an interface configuration
- IOS: Setting Terminal Window Length
- IOS CLI: show run linenum
- IOS: Setting the TCP timeout on IOS
- IOS: enable and .... disable ?
- IOS: Reverse SSH console access - Part 2
- IOS:Open Source Lab DNS and IP addressing
- IOS: Reverse SSH console access
- ip tcp timestamp
- Cisco ASA and IOS command tip - test aaa-server


Pingback: Cisco CLI Shortcuts · An IT Guy From Ohio
Pingback: Technology Short Take #11 - blog.scottlowe.org - The weblog of an IT pro specializing in virtualization, storage, and servers