|
|
|
|
|
by randrews
5784 days ago
|
|
I've never actually been bitten by rm (or done anything remotely this badass) but in college I did have a bad Unix moment: Late at night, I was tarring up a finished project right before emailing it to my professor. I ran: tar -cvf *.cpp *.h something.tar
instead of: tar -cvf something.tar *.cpp *.h
It happily wrote most of my project into a tar file on top of the first source file, then complained that something.tar didn't exist. I overwrote "array.cpp" or something like that, and had to rewrite it (this was before I used source control for anything, and a large part of why I learned to use source control).Writing this comment, I had to look up the order of the parameters to tar; I still can't remember. Stupid tar. |
|
Fortunately, they are only virtual fingers and we can grow them back on demand with adequate preparation, unlike real ones. :)