0

I was moving a tar file from the disk. Unfortunately, I misspelled the path, and I lost the file Ubuntu.

sudo mv /media/creator/sumeeth/software/apache-tomee-1.7.0-plus.tar.gz /~ 
muru
  • 197,895
  • 55
  • 485
  • 740
  • you probably wanted to move to ~/ (which is your home directory) instead of /~ (which is a file called ~ in the root directory) – pLumo Dec 19 '17 at 13:23

1 Answers1

5

You did not delete the file. You just moved it into /~ (assuming the command did not return any error). Files on Linux can contain any strange characters. Just move the file back with the reverse command:

sudo mv /~ /media/creator/sumeeth/software/apache-tomee-1.7.0-plus.tar.gz
Radek Dostal
  • 3,096