News for hackers. Stuff that matters.
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.

I ended up restoring from backup.

Re:My 10 UNIX Command Line Mistakes by kragen on Monday February 28, 2011 @12:50AM (#2270218)
You have just added a new reason to my list of reasons never to put `rm -rf *` into my command-line history again.
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.