Announcement

Collapse
No announcement yet.

extracted files from a zip can't be opened or deleted

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    extracted files from a zip can't be opened or deleted

    I found a zip archive with a couple of books in *.doc format.
    They are named in Spanish; including accented characters. When extracted, system did not recongnize this special characters, I guess is something about encoding of the files.

    The problem is that the files won't open nor be deleted. System (dolphin and Konqueror) says "File or folder doesn't exist".

    I can't rename them either. It is not a permissions issue; I've tried as sudo too; the answer is the same, system cannot do anything with these files because, although they are there, they "doesn't exist".

    I even opened a new text document in OpenOffice Write and saved it with the name of the original file. It overwrote it. Then I deleted. It goes away but a moment after, the old undeletable flie appears again!

    Can somebody help? I'm not specialist but I can follow command line instructions. If in Spanish, much better.

    Thanks

    #2
    Re: extracted files from a zip can't be opened or deleted

    I've same issue too.

    After extracting a zip file contains on files named into Arabic.

    Here the log of ls, dir and rm commands:
    Code:
    mbnoimi@admino-mbnoimi ~/Academic/SVU/courses/CMPP-Khalil Ajami/F10/tmp $ ls
    tmp ??ჴڮ ??ڴ? ???״ ??ۺ ????
    mbnoimi@admino-mbnoimi ~/Academic/SVU/courses/CMPP-Khalil Ajami/F10/tmp $ dir
    tmp \336\333ჴڮ\ \363\275ڴ\333\ \331\375\203״\ \333\321ۺ\ \365\203\331\333
    mbnoimi@admino-mbnoimi ~/Academic/SVU/courses/CMPP-Khalil Ajami/F10/tmp $ rm '\336\333ჴڮ\ \363\275ڴ\333\ \331\375\203״\ \333\321ۺ\ \365\203\331\333'
    rm: cannot remove `\\336\\333ჴڮ\\ \\363\\275ڴ\\333\\ \\331\\375\\203״\\ \\333\\321ۺ\\ \\365\\203\\331\\333': No such file or directory
    mbnoimi@admino-mbnoimi ~/Academic/SVU/courses/CMPP-Khalil Ajami/F10/tmp $ rm -f "\336\333ჴڮ\ \363\275ڴ\333\ \331\375\203״\ \333\321ۺ\ \365\203\331\333"
    mbnoimi@admino-mbnoimi ~/Academic/SVU/courses/CMPP-Khalil Ajami/F10/tmp $ rm -f "??ჴڮ ??ڴ? ???״ ??ۺ ????"
    mbnoimi@admino-mbnoimi ~/Academic/SVU/courses/CMPP-Khalil Ajami/F10/tmp $ rm "??ჴڮ ??ڴ? ???״ ??ۺ ????"
    rm: cannot remove `??ჴڮ ??ڴ? ???״ ??ۺ ????': No such file or directory
    mbnoimi@admino-mbnoimi ~/Academic/SVU/courses/CMPP-Khalil Ajami/F10/tmp $ ls
    tmp ??ჴڮ ??ڴ? ???״ ??ۺ ????
    mbnoimi@admino-mbnoimi ~/Academic/SVU/courses/CMPP-Khalil Ajami/F10/tmp $ dir
    tmp \336\333ჴڮ\ \363\275ڴ\333\ \331\375\203״\ \333\321ۺ\ \365\203\331\333
    mbnoimi@admino-mbnoimi ~/Academic/SVU/courses/CMPP-Khalil Ajami/F10/tmp $ rm "\336\333ჴڮ\ \363\275ڴ\333\ \331\375\203״\ \333\321ۺ\ \365\203\331\333"
    rm: cannot remove `\\336\\333ჴڮ\\ \\363\\275ڴ\\333\\ \\331\\375\\203״\\ \\333\\321ۺ\\ \\365\\203\\331\\333': No such file or directory
    mbnoimi@admino-mbnoimi ~/Academic/SVU/courses/CMPP-Khalil Ajami/F10/tmp $
    Attached Files

    Comment


      #3
      Re: extracted files from a zip can't be opened or deleted

      ok lets see if wear seen this right.....
      $ ls tmp ??ჴڮ ??ڴ? ״ ??ۺ ?
      is this a file name or a dir name if a dir you nead
      Code:
      rm -rf
      f for force and r for recursive

      and I think you got the one about escaping spaces with " " or \

      VINNY
      i7 4core HT 8MB L3 2.9GHz
      16GB RAM
      Nvidia GTX 860M 4GB RAM 1152 cuda cores

      Comment


        #4
        Re: extracted files from a zip can't be opened or deleted

        is this a file name or a dir name
        it's a folder, sorry I forgot to paste the right log... here is the correct one:
        Code:
        mbnoimi@admino-mbnoimi ~/Academic/SVU/courses/CMPP-Khalil Ajami/F10/tmp $ ls
        tmp ??ჴڮ ??ڴ? ???״ ??ۺ ????
        mbnoimi@admino-mbnoimi ~/Academic/SVU/courses/CMPP-Khalil Ajami/F10/tmp $ dir
        tmp \336\333ჴڮ\ \363\275ڴ\333\ \331\375\203״\ \333\321ۺ\ \365\203\331\333
        mbnoimi@admino-mbnoimi ~/Academic/SVU/courses/CMPP-Khalil Ajami/F10/tmp $ rm -rf "??ჴڮ ??ڴ? ???״ ??ۺ ????"
        mbnoimi@admino-mbnoimi ~/Academic/SVU/courses/CMPP-Khalil Ajami/F10/tmp $ dir
        tmp \336\333ჴڮ\ \363\275ڴ\333\ \331\375\203״\ \333\321ۺ\ \365\203\331\333
        mbnoimi@admino-mbnoimi ~/Academic/SVU/courses/CMPP-Khalil Ajami/F10/tmp $ rm -rf "\336\333ჴڮ\ \363\275ڴ\333\ \331\375\203״\ \333\321ۺ\ \365\203\331\333"
        mbnoimi@admino-mbnoimi ~/Academic/SVU/courses/CMPP-Khalil Ajami/F10/tmp $ dir
        tmp \336\333ჴڮ\ \363\275ڴ\333\ \331\375\203״\ \333\321ۺ\ \365\203\331\333
        mbnoimi@admino-mbnoimi ~/Academic/SVU/courses/CMPP-Khalil Ajami/F10/tmp $

        Comment


          #5
          Re: extracted files from a zip can't be opened or deleted

          try backing out 1 level and removing the /tmp dir.

          VINNY
          i7 4core HT 8MB L3 2.9GHz
          16GB RAM
          Nvidia GTX 860M 4GB RAM 1152 cuda cores

          Comment


            #6
            Re: extracted files from a zip can't be opened or deleted

            Originally posted by vinnywright
            try backing out 1 level and removing the /tmp dir.
            It's working but it's not a practical solution because I've ton of this king of files and folders so moving correct files and folders to another location is very exhausted method.

            I'm looking for a direct removing method for this kind of files and folders.

            Comment


              #7
              Re: extracted files from a zip can't be opened or deleted

              You could try deleting them by inode #:

              Code:
              $ find . -inum [inodenumber] -exec rm -i {} \;
              Registered Linux user #346571

              Comment


                #8
                Re: extracted files from a zip can't be opened or deleted

                Originally posted by jeremy1701
                You could try deleting them by inode #:

                Code:
                $ find . -inum [inodenumber] -exec rm -i {} \;
                That's it... thank you

                Comment


                  #9
                  Re: extracted files from a zip can't be opened or deleted

                  Originally posted by calleneptuno
                  I found a zip archive with a couple of books in *.doc format.
                  They are named in Spanish; including accented characters. When extracted, system did not recongnize this special characters, I guess is something about encoding of the files.

                  The problem is that the files won't open nor be deleted. System (dolphin and Konqueror) says "File or folder doesn't exist".

                  I can't rename them either. It is not a permissions issue; I've tried as sudo too; the answer is the same, system cannot do anything with these files because, although they are there, they "doesn't exist".

                  I even opened a new text document in OpenOffice Write and saved it with the name of the original file. It overwrote it. Then I deleted. It goes away but a moment after, the old undeletable flie appears again!

                  Can somebody help? I'm not specialist but I can follow command line instructions. If in Spanish, much better.

                  Thanks
                  Solution given issue may be zip repair. It has some required opportunities such as repairing crashed or lost zip archive data. It can fix .zip files after some troubles: power failures, viruses and unexpected errors. The tool starts under any major version of Windows OS.

                  Comment

                  Working...
                  X