Linux – Remove a certain line from Bash history file

bashcommand historyhistorylinux

How can I remove a certain line from history's database?

Best Answer

You need to log out and back in or run history -a so the current history is committed to disk.

Then just edit the file ~/.bash_history.