• Most COVID-19 rules have ended in New Zealand.
    • You must still isolate for 7 days if you have COVID-19.
    • You must wear a face mask in healthcare facilities, such as hospitals. International travellers will not need proof of COVID-19 vaccination.
    From 13 September 2022, to enter New Zealand, you do not need proof of vaccination.

How to clear bash history without leaving any trace

Andy

Administrator
Creative Team
User ID
1
Joined
7 Jan 2019
Messages
771
Reaction score
32
Points
28
In some occasion, if you don't want to leave any trace on what you've done on your Linux bash console or terminal or SSH client, use the following command:
Bash:
history -c && history -w && exit
The command above clears any history, writes an empty value of history (since it was cleared) and exits the terminal 🤓
Let me know down below if you find this article useful, or perhaps you have a better idea of doing this 👍
 
 Short URL:
Top