2

I am using Ubuntu 15.10 and I had a file name __app.zip and I was wanting to move that inside the folder name testing

To move the file i used the following command after which I cant find the file anymore, from searching online I understand now that i did not need to put / before the folder name.

sudo mv __apps.zip /testing

Is there anyway to get the lost file back?

muru
  • 197,895
  • 55
  • 485
  • 740

1 Answers1

4

You renamed your file testing in the root directory / with your command.

To move it back to where it was, just move it again:

sudo mv /testing /var/www/html/domain_name.com/subdomains/demo/__apps.zip
Oli
  • 293,335
Quentin
  • 1,307
  • when you say root directory, what directory in that? My file was inside /var/www/html/domain_name.com/subdomains/demo/ – Shairyar Baig Feb 16 '16 at 13:48
  • The root directory is /. If you want to restore your file :

    sudo mv /testing /var/www/html/domain_name.com/subdomains/demo/myfile.zip

    – Quentin Feb 16 '16 at 13:51