< Home

reset history-command all-users

Function

The reset history-command all-users command clears historical commands saved in the system.

Format

reset history-command all-users

Parameters

None

Views

All views

Default Level

3: Management 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 entered by all users and saved in the system, run the reset history-command all-users 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 all-users command must be used by a user of level 3 or above to clear the historical commands entered by all users, while the reset history-command command can be used by any user to clear the historical commands saved on a terminal. The two commands do not conflict with each other.

Example

# Clear the historical commands entered by all users.

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