terminal

Sets terminal parameters for the current session.

Syntax

terminal length lines
terminal monitor
terminal no length
terminal timeout seconds
no terminal { monitor | timeout }

Command Default

The terminal length is 24 lines.

The terminal timeout is 600 seconds (10 minutes).

Parameters

length number_of_lines
Specifies the number of lines to be displayed. Valid values range from 1 through 512. Specify 0 for infinite length.
monitor
Enables terminal monitoring.
timeout seconds
Specifies the timeout value in minutes. Enter an integer from 1 to 8192. Specify 0 to disable the timeout.

Modes

Privileged EXEC mode

Usage Guidelines

The timeout overrides the timeout configuration set by the line vty exec-timeout command, but only for the duration of the current session. When the current session ends, the configured values apply for any subsequent sessions.

Even if other keys are pressed during the timeout period, the only keystroke that prevents logout is Enter.

To reset the default timeout, use the no terminal timeout command.

To disable monitoring, use the no terminal monitor command.

To reset the default number of displayed lines, use the terminal no length command.

Examples

The following example sets the display length to 30 lines.

device# terminal length 30 

The following example sets timeout length to 3600 seconds (60 minutes).

device# terminal timeout 3600 

The following example restores the session timeout setting its default value of 600 seconds (10 minutes).

device# no terminal timeout