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 /~ 
1
  • 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, 2017 at 13:23

1 Answer 1

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
0

Not the answer you're looking for? Browse other questions tagged .