1-12
Welcome to legal!
Press Y or ENTER to continue, N to exit.
Welcome to login!
Login authentication
Password:
Welcome to shell!
<Sysname>
history-command max-size
Syntax
history-command max-size value
undo history-command max-size
View
User interface view
Parameters
value: Size of the history command buffer, ranging from 0 to 256 (in terms of commands).
Description
Use the history-command max-size command to set the size of the history command buffer of the
current user interface.
Use the undo history-command max-size command to revert to the default history command buffer
size.
By default, the history command buffer of each user can contain up to ten commands.
Each user interface has an independent history command buffer, which saves validated history
commands of the current user. The size of a history command buffer determines the number of history
commands that can be saved. You can use the display history-command command, up-arrow key or
down-arrow key to display commands saved in the history command buffer.
After you terminate the current session, the system automatically clears the commands saved in the
corresponding history command buffer.
Related commands: display history-command.
Examples
# Set the size of the history command buffer of AUX 0 to 20 to enable it to store up to 20 commands.
<Sysname> system-view
System View: return to User View with Ctrl+Z.
[Sysname] user-interface aux 0
[Sysname-ui-aux0] history-command max-size 20