How can I remove a certain line from history's database?
| |||||
feedback
|
|
Typing "history -d xxx" will delete a specified line. You then have to type "history -w" to make them permanent. It also removes them from the .bash_history file. The surest fire way is cYrus's answer. | ||||
|
feedback
|
|
Both answers a correct for fixing after the fact. Simply put a {space} before any command in terminal will prevent it from being logged in the first place. Remove all records: {space}history -c -w | |||
|
feedback
|