Best Answer: How Do I Clear Bash History in Linux?
Contents Is It Safe to Delete Bash History? It Is Important to Note That Bash Shell Does Not Immediately Flush History to the Bash_History File. So, It Is...
Contents
Is it safe to delete bash history?
It is important to note that bash shell does not immediately flush history to the bash_history file. So, it is important to (1) flush the history to the file, and (2) clear the history, in all terminals.
Must Read
How do I clear session history in Linux?
Clear the Current Session’s History
The history command is built into Bash itself, and the -c modifier tells the program to clear that history. This command will prevent anything in your current session from being written to your long-term history, but does not clear out that long-term history.