Ubuntu – Manually edit terminal command history

12.10gnome-terminal

My terminal history has hundreds of command, but I just want to keep a few of them

Is there a way to manually edit the list of command executed in the terminal?

Best Answer

While this would be rather tedious now that almost every command gets logged in your history, you can edit your ~/.bash_history file.