Where Did My Zipped File Go After Moving It?

0
7
Asked By CuriousCat42 On

I zipped a file and mistakenly moved it to tmp instead of /tmp. Now, I can't seem to find the zip file anywhere. I tried using the command 'find / -name "zipname.zip"', but I didn't have any luck. Is my file lost for good?

3 Answers

Answered By NewbieNinja On

Honestly, using a file manager from your distribution might be easier than the command line for now, especially while you're getting the hang of Linux.

Answered By TechWizard99 On

You might want to check the directory you were in when you moved the file. Use the command `ls -blA` to list all files and see if it’s hiding there.

CuriousCat42 -

Solved! I found it, it added 'tmp' to the start of the file name.

Answered By LinuxGuru88 On

It turns out that the `tmp` is treated the same as `tmp` by the shell. Since you moved the file with that prefix, you actually renamed it to 'tmp'. That's why 'find' can't locate it under its original name.

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.