Linux - File was deleted and then reappeared when folder was zipped

Posted by davee9 on Super User See other posts from Super User or by davee9
Published on 2010-05-11T20:10:46Z Indexed on 2010/05/11 20:26 UTC
Read the original article Hit count: 255

Filed under:
|
|
|
|

Hello,

I am using Backtrack 4 Final, which is a Linux distro that is Ubuntu based. I had a directory that contained around 5 files. I deleted one of the files, which sent it to the trash. I then zipped the directory up (now containing 4 files), using this command:

zip -r directory.zip directory/

When I then unzipped directory.zip, the file I deleted was in there again. I couldn't believe this, so I zipped up the directory again, and the file reappeared again but this time could not be opened because the operating system said it didn't exist or something. I don't remember the exact error, and I cannot make this happen again.

Would anyone happen to know why a file that was deleted from a directory would reappear in that directory after it was zipped up? Thank you.

© Super User or respective owner

Linux - File was deleted and then reappeared when folder was zipped

Posted by davee9 on Stack Overflow See other posts from Stack Overflow or by davee9
Published on 2010-05-11T20:10:46Z Indexed on 2010/05/11 20:14 UTC
Read the original article Hit count: 255

Filed under:
|
|
|
|

Hello,

I am using Backtrack 4 Final, which is a Linux distro that is Ubuntu based. I had a directory that contained around 5 files. I deleted one of the files, which sent it to the trash. I then zipped the directory up (now containing 4 files), using this command:

zip -r directory.zip directory/

When I then unzipped directory.zip, the file I deleted was in there again. I couldn't believe this, so I zipped up the directory again, and the file reappeared again but this time could not be opened because the operating system said it didn't exist or something. I don't remember the exact error, and I cannot make this happen again.

Would anyone happen to know why a file that was deleted from a directory would reappear in that directory after it was zipped up? Thank you.

© Stack Overflow or respective owner

Related posts about zip

Related posts about file