
history size
Sets the number of buffered command lines for this line.
Syntax: [terminal | no] history size num-lines
num_lines
The number of command lines to be stored in the history buffer. Valid values are 0 - 256.
Description: Use the history size command to configure the number of command lines stored in the history buffer. Use the command in Privileged command mode to set the history size for this session only. Use the command in Line configuration command mode to set the history for this and future sessions
In Privileged command mode: use the terminal keyword to configure the history size for only this session. The setting is not saved when the session ends.
Use the terminal history size num-lines command to enable the storage and display of the last commands entered for only this session.
Use the terminal no history size command to set the buffer to the default value of 10 lines for only this session.
Use the terminal history size 0 command to disable history for only this session. No command lines are stored.
In Line configuration command mode: omit the terminal keyword. The setting is saved for future sessions.
Use the history size num-lines command to enable the storage and display of the last commands entered.
Use the no history size command to set the buffer to the default value of 10 lines.
Use the history size 0 command to disable history.
Factory Default: 10 lines.
Command Mode: Line configuration and privileged.
Example 1: In the following example:
- The line console 0 command specifies the console and changes the command mode to Line configuration.
- The history size 75 command enables the re-display of up to 75 commands entered.
- The show line command displays the setting:
NOTE The setting will be saved for future VTY sessions.
router(config)#line console 0
router(config-line)#history size 75
router(config-line)#end
router(config)#end
router#show line
Line console 0
Length: 24 lines, Width: 80 columns
History is ENABLED, history size is 75.
Example 2: In the following example:
- The terminal no history size command configures the storage and display of commands entered at the default value of 10 lines for this session only.
- .The show terminal command displays the setting:
NOTE The setting is NOT saved for future sessions.
router#terminal no history size
router#show terminal
Length: 15 lines, Width: 80 columns
History is ENABLED, history size is 10.
Related Commands: history
show history
show line
show terminal
Copyright © 2005
Avici Systems Inc.
Avici® and TSR®
is a registered trademark of Avici Systems Inc.
IPriori, Composite Links, SSR, QSR, and NSR® are
trademarks of Avici Systems Inc.
Source
File Name: navigation.fm
HTML File Name: navigation11.html
Last Updated: 02/25/05 at 14:25:22