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?
mv
'd them to become the file namedbackup
. It may be possible to get the files back with a recovery utility like testdisk. To avoid this in the future, it can be useful to input the trailing/
when you want to move something into a directory,mv
will issue a warning that the directory doesn't exist. – Arronical Nov 08 '16 at 12:34alias mv='mv -i'
, and get into the habit of using trailing slashes inmv foo /bar/
(as opposed tomv foo /bar
). – marcelm Nov 08 '16 at 18:32