Filtering Show Commands
There are certain commands that generate multiple lines of output are. By default, such command results are always paused at 24 lines.
At the end of the paused output, the –More– text message shows. By pressing [Enter] you can show the next line and if you want to display the next set of lines you simply press [Space]
If you wish to manually modify/specify the number of lines to be displayed by default use the following command
Command to manually set the number of lines displayed when using show commands
R1> enable R1# configure terminal R1# terminal length [number]
[NOTE] If you want to remove all pauses and prevent the output to be paused after an amount of lines use the value of 0 (zero) to do so.
Commands can be also filtered out to display only specific sections of output. To enable filtering commands you should use a | (pipe) character after the show command and then type in a parameter and a filtering expression
There is a total of four filtering parameters that can be used to filter as follows
1. section
Show a full section that starts with the filtering expression
R1# show running-config | section line vty
2. include
Include all lines that match the filtering expression
R1# show ip interface brief | include down
3. exclude
Excludes all lines that match the filtering expression
R1# show ip interface brief | exclude unassigned
4. begin
Show all the lines from a certain point, beginning with the line that matches the filtering expression
R1# show ip route | begin Gateway