Re:My 10 UNIX Command Line Mistakes
by bradleyland on Sunday February 27, 2011 @02:48PM
(#2268720)
One of my worst was `source ~/.bash_history` via accidental tab completion. I was expecting .bash_profile. The nasty part was, I couldn't kill it because of all the mess (system instability) it was creating. A couple of 'cd ..' calls and a 'rm -rf *' ended up biking some root directories.
Re:My 10 UNIX Command Line Mistakes
by bho on Monday February 28, 2011 @10:35AM
(#2271524)
Could you add 'rm -rf' to histignore? I remember it works with patterns but can't remember if you can use it for specific commands. I'm not on my linux box now so I can't test it.
I ended up restoring from backup.