How to clear the history of recent commands in terminal so that I am unable to scroll through them with up and down arrow keys? Closing and reopening the terminal doesn't seem to clear the history. Nor does the reset command
Asked
Active
Viewed 3,412 times
3
1 Answers
5
In case of bash you could simply delete the content of ~/.bash_history.
The following should do it:
> ~/.bash_history
dufte
- 14,198
- 5
- 41
- 43