Editing and Help Features
One difference between a good and a great CLI engineer is the ability to quickly edit the line
being entered into the router. Great CLI engineers can quickly recall previously entered commands
and modify them, which is often much quicker than reentering the entire command.
Table 1.3 shows some of the editing commands most commonly used.
TABLE 1 . 3
CLI Editing Commands
Command Meaning
Ctrl+P or Up arrow Shows last command entered
Ctrl+N or Down arrow Shows previous commands entered
show history
Shows last 10 commands entered by default
show terminal
Shows terminal configurations and history buffer size
terminal history size
Changes buffer size (the maximum is 256)
Ctrl+A Moves your cursor to the beginning of the line
Ctrl+E Moves your cursor to the end of the line
Esc+B Moves back one word
Ctrl+B Moves back one character
Ctrl+F Moves forward one character
Esc+F Moves forward one word
Ctrl+D Deletes a single character
Backspace Deletes a single character
Ctrl+R Redisplays a line
Ctrl+U Erases a line
Ctrl+W Erases a word
Ctrl+Z Ends configuration mode and returns to EXEC mode
Tab Finishes typing a command for you