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.