Some background to maybe help others from making this mistake.
I was reading jokes from this Stack Overflow page to my friend (http://stackoverflow.com/questions/234075/what-is-your-best-programmer-joke?page=2&tab=votes#tab-top) and I was going through them pretty quickly. Saw the one with Russian Roulette, and since I was talking to my friend I was distracted and didn't read the comments below it. I thought it was just going to say "Click" if you lost. Never even imagined someone would have put "rm -rf /" in there. Copied and pasted it into terminal, glanced over it quickly but somehow my eyes missed the delete command (you don't see what you're not looking for).
Anyway, as soon as I saw a scrolling list of files, I realized something was wrong and hit Ctrl+C. In other words, about 0.2 seconds later.
The last item it got to was:
rm: /Applications/iPhoto.app/Contents/PlugIns/HTMLExporter.iPhotoExporter/Contents/Resources/cs.lproj/Panel.nib: Permission denied
I assume that for most of these things you have to be root to delete, but it did take out Google Chrome. Luckily, it didn't get any of my user files.
So since I don't know what got lost, could someone tell me if "Applications" is the first directory in "/" on OS X or are there any directories that would have gotten wiped out before it? Anything important in Applications that is on OS X by default (that doesn't require root to delete)? Does
rm remove things alphabetically?
Thanks for checking for me
(In case you're wondering, I only backup
~ since it's the only directory I keep my important files in.)