I used the mv command (sudo mv 7_00.tts ~/Desktop
) in Linux Terminal to move a file to a specific folder. The destination folder didnt exist unfortunatly. Now i have a file (type:binary) that is named like the destination folder and it includes the file that i need (The size of the binary file shows it contains the moved file). I dont have the original file (a video file) anymore so its only in the binary file. Is there a way to get the file back that i moved?
I tried to just rename the file to the original file type, but due to the folder in between its obviously not working. Didnt try anything else due to lack of knowledge.
This "binary" file is your original file, only you renamed it.
You should rename it back to the original name.
If you ran the command
sudo mv 7_00.tts ~/Desktop
(I don't understand why you usedsudo
, it shouldn't be normally needed to move/rename files within your home directory), then run the opposite:sudo mv ~/Desktop 7_00.tts
.I assume the 'Desktop' file is actually your new file.
So in essence you just moved your original file and renamed it as 'Desktop'. Remember, in linux based os, extension which comes at the end of the filename hardly matters. So even if say, you have a text file 'abc.txt' and you rename it to 'abc', it will still be a text file and would not have become a binary.
You only have to
mv ~/Desktop 7_00.tts
See if you get your original file back.