gzip'd directory - how do I unzip

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • pbarts
    New Member
    • Sep 2012
    • 4

    gzip'd directory - how do I unzip

    We have compressed directory with a name ending in .gz_FILES. It is marked as a directory, and everything I've tried with gunzip is ignoring because of that. I've read a number of discussions, all of which recommend tar instead. That's probably a good recommendation going forward, but that doesn't help the current situation. I don't know how this .gz_FILES was created, and I don't know how to un-compress it. I would welcome any suggestions.

    Thanks.
  • sicarie
    Recognized Expert Specialist
    • Nov 2006
    • 4677

    #2
    Is the file extension actually .gz or is it .gz_FILES? If it is the latter, you can rename the end to .gz and then use gunzip command as usual.

    If not, what is the error?

    Comment

    • rski
      Recognized Expert Contributor
      • Dec 2006
      • 700

      #3
      what does
      Code:
      file <your_filename>
      command show?

      Comment

      • pbarts
        New Member
        • Sep 2012
        • 4

        #4
        It comes back with the response: setgid directory. What is that telling me?

        Comment

        • pbarts
          New Member
          • Sep 2012
          • 4

          #5
          I tried to copy the file to a .gz extension, but got the message from cp: omitting directory '...directory name...'.

          Comment

          • rski
            Recognized Expert Contributor
            • Dec 2006
            • 700

            #6
            Are you sure it is compressed directory? Did you try to enter the directory (cd <directory name>?)

            Comment

            • pbarts
              New Member
              • Sep 2012
              • 4

              #7
              The system recognizes it as a valid directory. It's got the bit set and the cd command was successful. When I go there and list the directory contents, no files are listed (. and .. only). Ordinarily I would think it to be empty, but I'm not sure what a compressed directory would show if it actually had files in it.

              Comment

              • rski
                Recognized Expert Contributor
                • Dec 2006
                • 700

                #8
                As far as I know you can not do cd for compressed directory, you have to uncompress it first. Your directory is empty.

                Comment

                Working...