Ubuntu – Move to directory that was no directory

mv

I did this:

mv couchpotato_11-08-2016_09-35.tar.gz ~/AtoMiC-ToolKit/backup
mv transmission-daemon_11-08-2016_09-36.tar.gz ~/AtoMiC-ToolKit/backup
mv sickrage_11-08-2016_09-35.tar.gz ~/AtoMiC-ToolKit/backup

But backup was no directory or file, and now the files are gone.

How do I find or restore these files?

Best Answer

Your files are gone and only your last file 'sickrage_11-08-2016_09-35.tar.gz ' is still there and renamed to 'backup' in '~/AtoMiC-ToolKit/'

To restoring it back just run (assuming you didn't change your working directory yet)

mv ~/AtoMiC-ToolKit/backup $PWD/sickrage_11-08-2016_09-35.tar.gz