The tar command just overwrote my file an hour ago while I was trying to make a tar to backup it.
I ran
tar zcvf foo.tex foo.bib
and after that my tex source file lost. What's worse, this is the second time I lost my file in this way.
I use gvim, but 'u' command can recover my file. After browsing some help entries about 'backup', 'undofile', I just can not find a way to avoid tar command from overwriting my file again.
Then I try to find a parameter like '-i' from cp or mv, but among the many parameters of tar I can't find one.
I wonder how can I avoid this kind of things happening again, for I am a little unconfident about remembering to add the new foo.tar thing that I always forget next time.