![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| gunzip syntax help | onlyjayaram | UNIX for Dummies Questions & Answers | 1 | 07-23-2007 12:14 PM |
| gunzip question | devs | UNIX for Dummies Questions & Answers | 3 | 03-26-2007 10:54 PM |
| Retaining tar.gz after gunzip | devs | Shell Programming and Scripting | 4 | 02-26-2007 08:41 PM |
| gzcat (or gunzip -c) | windjunky | UNIX for Dummies Questions & Answers | 1 | 06-26-2006 07:31 AM |
| gunzip....problem | Prafulla | UNIX for Dummies Questions & Answers | 2 | 09-06-2001 04:08 AM |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
Gunzip
Hi
can't unzip a gz file in TurboLinux 7.0 when i'm trying this gunzip filename.tar.gz it always says not in gzip format what should I do...please help me |
| Forum Sponsor | ||
|
|
|
#2
|
|||
|
|||
|
You might want to use the file command to check that it is a gzip file.
% file bind-src.tar.gz bind-src.tar.gz: gzip compressed data - deflate method % file iscbind831.tar iscbind831.tar: USTAR tar archive % file tpa.dns.Z tpa.dns.Z: compressed data block compressed 16 bits % % mv tpa.dns.Z tpa.dns.gz % file tpa.dns.gz tpa.dns.gz: compressed data block compressed 16 bits You can see just because a file has a .gz does not mean it is a gzipped file. It may have changed in the way it was downloaded (or after) but kept the .gz name. |
|
#3
|
|||
|
|||
|
It may be that the file is simply tarred. I've had this where someone forgot to zip it but specified the extension with gz. Worth a quick check too.
__________________
Pete |
|
#4
|
|||
|
|||
|
Depending on the browser you used to download, the file may have already been unzipped during the download, but didn't alter the file to reflect this. You might try renaming the file from file_name.tar.gz to file_name.tar, then try untaring it.
tar xvf file_name.tar See if that works. -mk
__________________
If it aint broke, Fix it till it is. |
|
#5
|
|||
|
|||
|
Hello,
sometimes, when I want to compact a file or a groups of files I use bz2, because it permits appends on the .bz2 file. If you have a test.bz2 file, you can do something like bzip2 -9 file.x >> test.bz2. For some jobs, thats good, for others no. |
|||
| Google The UNIX and Linux Forums |