Command
History Size
Use
Sets the amount 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 console.
R2#conf t |
Here, the running config for the console is shown with the newly set history size.
R2(config-line)#do show run | sec con |