< Home

screen-length

Function

The screen-length command sets the number of lines on each terminal screen.

The undo screen-length command restores the default configuration.

By default, the number of lines displayed on a terminal screen is 24.

Format

In the user interface view:

screen-length screen-length [ temporary ]

undo screen-length [ temporary ]

In the user view:

screen-length screen-length temporary

undo screen-length temporary

Parameters

Parameter Description Value
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.
temporary Specifies the number of lines temporarily displayed on a terminal screen. -

Views

User interface view, user view

Default Level

3: Management level in the user interface view

1: Monitoring level in the user view

Usage Guidelines

If a command output is displayed in more lines than you can see on one screen, run the screen-length command to reduce the number of lines displayed on each screen.

In general, 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.

In the user view, the temporary parameter is mandatory, and this command is at the Monitoring level.

Example

# Set the number of lines on each screen of the terminal to 30.

<HUAWEI> system-view
[HUAWEI] user-interface console 0
[HUAWEI-ui-console0] screen-length 30
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >