I made a mistake when moving a set of file by this command mv src/* .. instead of mv src/* .
This happened to me today! but you need not panic. suppose "file.txt" is your file name.
- in linux command prompt, go to the directory from where you moved the file "file.txt"
ls -a(lists all files & sub directories including hidden files and directories)
- you will see that a copy of the file that you moved was saved as "file.txt~"
- now execute
mv file.txt~ file.txtin command prompt. (this will move the automatically saved copy of your file back to your file)
That's it! you're good to go!