The user-interface vty screen-length command sets the number of lines on each terminal screen after you run a command.
The undo user-interface vty screen-length command restores the default configuration.
By default, the number of lines to be displayed on a terminal screen is 24.
user-interface vty ui-number screen-length screen-length
undo user-interface vty ui-number screen-length
Parameter | Description | Value |
---|---|---|
ui-number | Specifies the VTY user interface number. | The value is an integer that ranges from 0 to 4. |
screen-length | Specifies the number of lines displayed on a terminal screen. | The value is an integer that ranges from 0 to 512. The value 0 indicates that all command output is displayed on one screen. |
If you run a command and its output is displayed in more lines than you can see on one screen, you can set a small number of lines displayed on each screen.
In most cases, you do not need to change the number of lines displayed on each screen. Setting the number of lines to 0 is not recommended. The configuration takes effect after you log in to the system again.