473,378 Members | 1,156 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

gzip'd directory - how do I unzip

4
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.
Sep 12 '12 #1
7 2203
sicarie
4,677 Expert Mod 4TB
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?
Sep 13 '12 #2
rski
700 Expert 512MB
what does
Expand|Select|Wrap|Line Numbers
  1. file <your_filename>
  2.  
command show?
Sep 13 '12 #3
pbarts
4
It comes back with the response: setgid directory. What is that telling me?
Sep 13 '12 #4
pbarts
4
I tried to copy the file to a .gz extension, but got the message from cp: omitting directory '...directory name...'.
Sep 13 '12 #5
rski
700 Expert 512MB
Are you sure it is compressed directory? Did you try to enter the directory (cd <directory name>?)
Sep 14 '12 #6
pbarts
4
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.
Sep 14 '12 #7
rski
700 Expert 512MB
As far as I know you can not do cd for compressed directory, you have to uncompress it first. Your directory is empty.
Sep 15 '12 #8

Sign in to post your reply or Sign up for a free account.

Similar topics

7
by: Max M | last post by:
I guess that the best approach is calling a shell tool with something like os.popen(). But I cannot seem to find any free tools. Winzip has a command line option, but for registered users only....
1
by: Aji Mathews via .NET 247 | last post by:
Hi I am using SharpZipLib. Could someone help with some sample code to unzip a file to a specified location. Thanks -------------------------------- From: Aji Mathews ...
1
by: Jan | last post by:
Hi, Is there a way to unzip a file in a directory from C#. I need a program to do that since that program copies the file from a server to a local machine, and then has to verify the contents of...
2
by: Jim Andersen | last post by:
I am going to build a webapp. Our users are not allowed to download certain files, so I need to show files in a directory (.doc, .ppt, ???) and the user can then convert them to PDF and download...
4
by: DataSmash | last post by:
I need to unzip all zip file(s) in the current directory into their own subdirectories. The zip file name(s) always start with the string "usa" and end with ".zip". The code below will make the...
3
by: DaveO | last post by:
My apologies for individually posting this to multiple newsgroups - my ISP won't allow multiple posts. I'm not a C programmer, so I'm looking for someone to modify some UnZip code for a...
0
by: Rocky Zhou | last post by:
python unzip At first, I tried to use 'os.popen3("unzip ...") like this: fin, fout, ferr = os.popen3("unzip -o -d %s %s" % (dest, zipfile)) strerr = ferr.read() # This makes the program hanging...
3
by: sdoty044 | last post by:
I am a true n00b... and I just using Python to complete some very small uneventful task, but need help with one last thing. Basically, this I what I am trying to do. make a temp directory...
3
by: jld730 | last post by:
Hi All, I am looking for help on this simple script to unzip/extract the contents of a zip file. This is what I have so far: import zipfile, os, sys zip1 = ("C:\\Temp\\test11.zip") z =...
5
by: noydb | last post by:
Can someone help me with this script, which I found posted elsewhere? I'm trying to figure out what is going on here so that I can alter it for my needs, but the lack of descriptive names is making...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.