Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Gunzip
# 1  
Old 05-28-2002


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
# 2  
Old 05-28-2002
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
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.
# 4  
Old 06-02-2002
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
# 5  
Old 06-04-2002

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.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

gunzip status

Hi, I'm trying to run my application on HP-UX server. I have to extract a *.tar.gz file. I'm doing that now in 2 steps. first I gunzip it and then pax it. My question is how can I check whether the data in the *.tar.gz file is corrupted or not?? Now, I'm trying to do this... (1 Reply)
Discussion started by: Kyaw Lwin Phyo
1 Replies

2. Shell Programming and Scripting

Gunzip files

Hi ALL, Am working with the gunzip command to zip all the old files having 10 days am using the command find . -name '*.log' -type f -mtime +10 -exec gunzip {} \; am facing two issues 1.)it displays the files which are all older than a year 2.)when am trying to gunzip all the... (2 Replies)
Discussion started by: thelakbe
2 Replies

3. SCO

gunzip problem

hi On one of our SCO 5.0.6 server gunzip doesn't work and I'm getting this error message: # gunzip dynamic linker: gunzip: symbol not found: ___requires_updated_system_library_se_ Killed What's missing? (0 Replies)
Discussion started by: ccc
0 Replies

4. Shell Programming and Scripting

Gunzip files

Hello Everyone, I have a few files in a directory such as : .... .... ... ... And I want uncompressed files such as: .... ... ..... .... (1 Reply)
Discussion started by: ad23
1 Replies

5. Shell Programming and Scripting

Help with gunzip

Hi All, I have a file "" and getting the below errors: server1:/home/arun# gunzip -S .zip gunzip: first entry not deflated or stored -- use unzip server1:/home/arun#unzip ksh: unzip: not found. ... (11 Replies)
Discussion started by: Arunprasad
11 Replies

6. UNIX for Dummies Questions & Answers


I have a zip file as and it contains 1m xml files. like a1.xml, a2.xml.... The size is also very big nearly 1GB. I want to extract only a123.xml. Can any one help how can I do this? (1 Reply)
Discussion started by: siba.s.nayak
1 Replies

7. Shell Programming and Scripting

Help on gunzip

Hi All, I am using UNIX command to unzip the files gzip -d9 DW_*.gz The Xmls are compressed using gzip and it is received in the .gz format at UNIX box which need to be uncompressed. The above command is working fine for 400 compressed xmls(.gz files) but when the count becomes 401 or more i... (7 Replies)
Discussion started by: Codesearcher
7 Replies

8. UNIX for Dummies Questions & Answers

gunzip syntax help

Hi All, I am a newbie to unix and need help. I am trying to unzip the files in source library to destination library. the input filename can be any thing with abc and after unzip, i want the same file name with original extension suppose,the input file is ABC_jun25.dat.gz after gunzip in the... (1 Reply)
Discussion started by: onlyjayaram
1 Replies

9. UNIX for Dummies Questions & Answers

gunzip question

unzip ==> This uncompresses and keeps the original zip file. gunzip test.gz ==> Removes the .gz file after uncompressing. Is there any switch to make the .gz file available after uncompression. Thanx in advance. (3 Replies)
Discussion started by: devs
3 Replies

10. UNIX for Dummies Questions & Answers


Hi........... i have downloaded...sunscreen3.1 lite frm sunfreeware .com and it is in tar.gz i download gzip also... now pls tell me how to install gzip and how to unzip tht sunscreen tar.gz file..............after unzipping i have to untar the tar file or not.....pls tell me in... (2 Replies)
Discussion started by: Prafulla
2 Replies
Login or Register to Ask a Question