terminal length

To set the number of lines of output to display on the terminal screen for the current session before pausing, use the terminal length command. To revert to the default, use the no form of this command.

terminal length lines

terminal no length

Syntax Description

Number of lines to display. The range is from 0 to 511. Use 0 to not pause while displaying output.

Command Default

The initial default for the console is 0 (do not pause output). The initial default for virtual terminal sessions is defined by the client software. The default for the no form is 24 lines.

Command Modes

EXEC mode

Command History

This command was introduced.

Usage Guidelines

The session pauses after displaying the number of lines set in the terminal length. Press the space bar to display another screen of lines or press the Enter key to display another line. To return to the command prompt, press Ctrl-C .

The terminal length setting applies only to the current session.


This example shows how to set the number of lines of command output to display on the terminal before pausing:

switch# terminal length 28

This example shows how to revert to the default number of lines:

switch# terminal no length

Related Commands

show terminal
Displays the terminal session configuration.