Terminal Pagination (--More--)¶
Long command output (show running-config, show tech-support) stops every screenful with --More--, waiting for Space (next page), Enter (next line), or q (quit). Useful on a real terminal; a nuisance when capturing output or scripting. The behaviour is controlled by the line's length setting — the number of rows the switch assumes your screen has. 0 means "never paginate."
This Session Only¶
From the EXEC prompt (no config mode needed):
SW01# terminal length 0
Applies to the current session and resets when you log out. terminal length 24 (or any number) turns pagination back on mid-session.
Permanently¶
Set it on the lines themselves, so every future session starts pagination-free:
SW01# conf t
SW01(config)# line con 0
SW01(config-line)# length 0
SW01(config-line)# line vty 0 15
SW01(config-line)# length 0
SW01(config-line)# end
SW01# copy running-config startup-config
con 0 is the physical console port; vty 0 15 is the range of all sixteen virtual terminal lines that SSH sessions land on. Each line keeps its own settings, and a session grabs the first free line — configure the whole range or a second simultaneous session lands on an unconfigured line and pagination is mysteriously back. (Older platforms may only have vty 0 4; line vty 0 ? shows the range.)
Terminal width has the same two forms.
terminal width 0(session) orwidth 0on the line stops the switch hard-wrapping long lines — worth setting alongside length when capturing configs, so lines don't come back broken mid-word.