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.
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>
history -d 5
The above command will delete the history number 5.