IOS CLI uses a traditional set of shortcuts which originated in UNIX. Here is a list of some for those who are not familiar with UNIX CLI. I recommend to practice these shortcuts because it really makes your job easier.
Moving
- Ctrl+A – Move cursor to the beginning for the line
- Ctrl+E – Move cursor to the end of the line
- Ctrl+F – Move cursor forward
- Ctrl+B – Move cursor backward
- Ctrl+P – Previous command
- Ctrl+N – Next command
The last two may seem useless for you but it is actually quicker – you don’t need to disturb your typing much by moving your fingers to reach special arrow keys.
Editing
- Ctrl+W – Delete the word to the left from the cursor
- Ctrl+U — Delete the whole line
Operating
- Ctrl+C – Exit. For example, exit from config mode
- Ctrl+Z – Apply the command and exit from exit mode
- Ctrl+R – Refresh if you don’t you line synchronization.
- Tab – Command complete
- Ctrl+Shift+6 (X) – This one is a tricky. It is an escape sequence to send “abort” but it almost never works due to terminal software issues :)
There are more of them but these are the most important.