< Home

reset history-command

Function

The reset history-command command clears the historical commands saved on a terminal.

Format

reset history-command

Parameters

None

Views

All views

Default Level

0: Visit level

Usage Guidelines

Usage Scenario

The terminal automatically saves commands entered by users. All the inputs ended with Enter are saved as historical commands.

To clear the historical commands saved on a terminal, run the reset history-command command.

Precautions

  • The formats of the saved historical commands are the same as those of the commands entered by users. If the formats of the commands used by the users are incomplete, the formats of the saved historical commands are also incomplete.
  • The reset history-command command can be used by any user to clear the historical commands saved on a terminal, while the reset history-command all-users command must be used by a user of level 3 or above to clear the historical commands entered by all users. The two commands do not conflict with each other.

Example

# Clear the historical commands saved on a terminal.

<sysname> reset history-command
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >