Improved CLI the user Experience
serial number |
command-line edit key sequence |
|
1 |
Tab |
full command or keyword |
2 |
Ctrl + A |
move cursor to start of command line |
3 |
Ctrl + E |
move the cursor to the end of the command line |
4 |
Backspace |
delete one character to the left of the cursor |
5 |
Ctrl + U |
delete one line |
6 |
Ctrl + Shift + 6 |
run user terminates Ios process (for example ping or traceroute |
7 |
Ctrl + C |
discard the current command and launch configuration mode |
8 |
Ctrl + Z |
launch configuration mode and return EXEC Prompt |
Switch#terminal History Size 50
set the session command buffer size to line
Switch#show history
Display the contents of the historical buffer
Serial number |
Command line edit key sequence |
Description |
1 |
Ctrl + P ↑ " |
command to bring up the historical buffer |
2 |
Ctrl + N or "↓" |
Returns the most recent command in the history buffer |
Switch#terminal Length 100
Set the number of lines on the current terminal screen
Switch#show Running-config
Displays the current Configuration running in Cisco IOS , "SpaceBar" Displays the next set of rows, and the "Enter" key displays a row
Using Pipelines ( | ) Character and a filter parameter, you can filter Show Output
use the Inclue parameter to display a configuration command that contains a specific word
switch#showrunning-config | include hostname
use the section parameter to display a subset of the configuration
switch#showrunning-config | section FASTETHERNET0/1
Filter parameters that can be used to filter the output
Serial number |
Parameters |
Description |
1 |
Begin |
start with a line that matches the filter expression, and display all output starting at a point |
2 |
Exclude |
exclude all output lines that match the filter expression |
3 |
include |
includes all output lines that match the filter expression |
4 |
Section |
Displays the entire section starting from the filter expression |
Improving the user experience of the CLI in Cisco IOS