< Home

history-command max-size

Function

The history-command max-size command sets the size of the history command buffer.

The undo history-command max-size command restores the default size of the history command buffer.

By default, the size of the history command buffer is 10, that is, the FW keeps the record of a maximum of 10 commands that the user recently enters.

Format

history-command max-size size-value

undo history-command max-size

Parameters

Parameter Description Value
size-value Specifies the size of the history buffer. The value is in the range of 0 to 256.

Views

User interface view

Default Level

3: Management level

Usage Guidelines

The command line interface (CLI) provides a function similar to DosKey, which can automatically save the history commands that the user enters. You can invoke the saved history commands at any time for repeated execution.

Example

# Set the size of the history command buffer to 20.

<sysname> system-view
[sysname] user-interface console 0
[sysname-ui-console0] history-command max-size 20
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >