How do I recover my file I deleted from the command-line with mv?
Posted on 2005-04-19
I was working on a script via the vim editor through putty on my Windows machine when my system crashed. When my windows machine booted back up I re-connected through putty and killed the vim process. I just saved a couple minutes before my windows system crashed, so it wouldn't have been a big deal if I just went back to my script, but without thinking I went ahead and did something stupid. I overwritted my script with the .swp file, which turned out to be corrupted.
# mv .my_script.swp my_script
mv: overwrite `download'? y
90% of my script is now garbage. Is there anything I can do. I do have a backup, but that's from a couple days ago. If I don't get that back the last 4 hours will have been a waist. What can I do? Is there anyway to undo the mv command.