How do I permanently delete Linux terminal history?

How do I permanently delete Linux terminal history?
Answer
There may come a time that you want to remove some or all the commands in your history file. If you want to delete a particular command, enter history -d <line number> . To clear the entire contents of the history file, execute history -c . The history file is stored in a file that you can modify, as well.
 

Tìm kiếm

Back
Top