The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM


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 !!

More UNIX and Linux Forum Topics You Might Find Helpful
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

Closed Thread
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 05-28-2002
Registered User
 

Join Date: Mar 2002
Location: Sweden
Posts: 19
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  
Old 05-28-2002
thehoghunter
Guest
 

Posts: n/a
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  
Old 05-30-2002
Registered User
 

Join Date: Nov 2001
Location: New Zealand
Posts: 333
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  
Old 06-02-2002
Registered User
 

Join Date: Feb 2002
Posts: 28
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  
Old 06-04-2002
Registered User
 

Join Date: May 2002
Location: Campinas, Brazil
Posts: 20
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
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 12:36 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0