reset history-command

Function

The reset history-command command deletes the historical commands of the current user.

The reset history-command all-users command deletes the historical commands of all users in the system.

Format

reset history-command

reset history-command all-users

Parameters

None

Views

User view

Default Level

0: Visit level

Task Name and Operations

Task Name Operations
shell execute

Usage Guidelines

To delete the historical commands of the current user, run the reset history-command command.

The reset history-command all-users command clears the query result of the display history-command all-users command, without affecting the query result of the display history-command command.

Example

# Delete the historical commands of all users.
<HUAWEI> reset history-command all-users
# Delete the historical commands of the current user.
<HUAWEI> reset history-command
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >