26Are you sure to free line vty1? [Y/N]:y[OK]history-command max-sizeUse history-command max-size to set the size of the command history buffer for a user line.Use undo history-command max-size to restore the default.Syntaxhistory-command max-size size-valueundo history-command max-sizeDefaultThe buffer of a user line saves up to 10 history commands.ViewsUser line view, user line class viewPredefined user rolesnetwork-adminParameterssize-value: Specifies the maximum number of history commands the buffer can store, in the range of0 to 256.Usage guidelinesEach user line uses a separate command history buffer to save commands successfully executed byits user. The size of the buffer determines how many history commands the buffer can store.To view stored history commands on your user line, press the up or down arrow key, or execute thedisplay history-command command.Terminating a CLI session clears the commands in the history buffer.This command is available in both user line view and user line class view. A non-default setting ineither view takes precedence over a default setting in the other view. A non-default setting in userline view takes precedence over a non-default setting in user line class view.Examples# Set the size of the command history buffer to 20 for user line AUX 0. system-view[Sysname] line aux 0[Sysname-line-aux0] history-command max-size 20idle-timeoutUse idle-timeout to set the CLI connection idle-timeout timer.Use undo idle-timeout to restore the default.Syntaxidle-timeout minutes [ seconds ]undo idle-timeoutDefaultThe CLI connection idle-timeout timer is 10 minutes.