How Do You Delete User History in Linux?
Contents 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. Bash Shell...
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. Bash shell users find it in their home directory as . bash_history .
Where is history file in Linux?
The history is stored in the ~/. bash_history file by default. You could also run ‘cat ~/. bash_history’ which is similar but does not include the line numbers or formatting.
Must Read
What is the command to check history in Linux?
In Linux, there is a very useful command to show you all of the last commands that have been recently used. The command is simply called history, but can also be accessed by looking at your . bash_history in your home folder. By default, the history command will show you the last five hundred commands you have entered.