Delete history from Linux terminal

In this short post, we will see a command to delete history from Linux terminal.

To delete a single history you can use the following command:

history -d <history-number>

Example

history -d 5

The above command will delete the history number 5.

Sharing Is Caring:
Subscribe
Notify of
0 Comments
Most Voted
Newest Oldest
Inline Feedbacks
View all comments