Delete a Single Line From History

Did you ever wanted to remove a single line from your shell history? This is how you can easily do it:
use: history -d line number to remove the line, for example history -d 431, then type history -w to write changes to your history file or database

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.