Command
History Size
Use
Sets the number of previous commands stored in the session history. These commands can be viewed by pressing the up arrow key.
Syntax
Router(config-line)#history size <0-256>
Example
In the example below the history size is set for the vty.
R2#conf t Enter configuration commands, one per line. End with CNTL/Z. R2(config)#line vty 0 4 R2(config-line)#history size 15
Here the running config for the vty is shown with the newly set history size.
R2(config-line)#do show run | sec vty line vty 0 4 privilege level 15 no login history size 15 transport input telnet ssh