systemctl command not found

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.


Subscribe
Notify of
0 Comments
Inline Feedbacks
View all comments