---

How to effectively clear your bash history

On your Linux machines, a history of your bash commands is retained. This is great when you need to repeat a command or can’t remember exactly how you executed a command in a previous session. However, this can also be seen as a security issue. What if someone gains access to your machine, opens a terminal window, and checks through your bash history to see what commands you’ve run?

Get the Free Newsletter!

Subscribe to Developer Insider for top news, trends, & analysis