The Perk of $HOME - .bash_logout
It’s not a well kept secret but I’m still surprised by how many people have
.bash_logout. Its purpose is pretty simple,
if you use the BASH shell it’ll be executed when you log out (see, a well
So what’s it for? Well, I use mine to invalidate any
sessions I’ve got open (
screen -in case it’s a local session - and nuke a history file or two.