Error when unzipping a file with extension .gz


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Error when unzipping a file with extension .gz
# 8  
Old 11-21-2013
Well, what is your system? I can't imagine upgrading would be easy for a system 10 years out of date.
# 9  
Old 11-21-2013
My linux version is:

Code:
Linux version 2.6.18-348.3.1.el5 (mockbuild@x86-022.build.eng.bos.redhat.com) (gcc version 4.1.2 20080704 (Red Hat 4.1.2-54)) #1 SMP Tue Mar 5 13:19:32 EST 2013

# 10  
Old 11-21-2013
OK, you seem to be on Redhat Enterprise Linux v5, with the Jan 2013 kernel, which is not that old at all. I have no idea why your version of gzip is so old.

RHEL5 includes busybox I think, so you can see if this works any better:
Code:
busybox gunzip filename.gz

# 11  
Old 11-21-2013
sorry but it did not work... I tried as below
Code:
busybox gunzip D_R_38957222_20111410.txt.gz

but i received the following error
Code:
-bash: busybox: command not found

I tried to do man busybox and it returned me description about the command. Should I be using anything else for bash? Not sure...
# 12  
Old 11-21-2013
Try whereis busybox to see where it is. You may need to run it like /sbin/busybox. It may also be called bb.
# 13  
Old 11-21-2013
whereis busybox gives me the output
Code:
busybox: /sbin/busybox /usr/share/man/man1/busybox.1.gz

So I tried the command as below and it still gives me error.
Code:
/sbin/busybox busybox gunzip D_R_38957222_20111410.txt.gz

Output is
Code:
gunzip: crc error
gunzip: Error inflating

# 14  
Old 11-21-2013
Both the usual gzip utility and your emergency backup one agree it is corrupted. I suspect there really is something wrong with it.

How did you get the file? Was it uploaded with FTP?
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Unzipping .Z file in UNIX

Hi , How can I unzip a .Z file in Unix? Thanks and regards, Anupam (3 Replies)
Discussion started by: Anupam_Halder
3 Replies

2. Shell Programming and Scripting

Error while Unzipping

Hi, I have transfered a Zip file from Windows to Unix and tried to Unzip it in Unix using ksh. But it throws an error: error : missing 24 bytes in zipfile (attempting to process anyway) error : attempt to seek before beginning of zipfile (please check that you have transferred or... (2 Replies)
Discussion started by: angie1234
2 Replies

3. Shell Programming and Scripting

Unzipping the file

I have my folder structure like a file a.zip is placed in one folder. Inside a.zip is two other zip files x.zip and y.zip If i unzip x.zip i have folder a folder z and inside folder z there are different folders with event time appended to it. Inside the every event folder ,I have a sub folder... (1 Reply)
Discussion started by: weknowd
1 Replies

4. Linux

unzipping file > 2gb

I am not able to unzip file greater then 2gb, Any suggestions how to do that in linux? Regards, Manoj (5 Replies)
Discussion started by: manoj.solaris
5 Replies

5. Shell Programming and Scripting

Unzipping latest zip file by name.

I have these zip files that come in with the same name, but different versions. We'll say: SQL_version2.zip SQL_version3.zip SQL_version2432.zip I was wondering if there is a single command (or even piped command, thus still making it a single command) that will let me unzip the latest... (3 Replies)
Discussion started by: mrwatkin
3 Replies

6. Solaris

Alter zip file without unzipping

I have some zip files. Every file has a "folder/xml file" inside it. Is there any way to change these zip files directly without unzipping them. I want to convert these zip files to "/xml file" (want to move the xml file/s one root up by removing the folder inside it.) Ex: -bash-3.00$ for file... (1 Reply)
Discussion started by: _prasad
1 Replies

7. HP-UX

Error while UNZIPPING

Hi, I have file.zip in windows machine, i moved that .zip to unix throught ftp. when i tried to unzip the .zip file getting the error. please see the below information for the same. I am using the below command to UNZIP : unzip /users/test/file.zip /users/test/test111 Below are the... (1 Reply)
Discussion started by: srujana
1 Replies

8. UNIX for Dummies Questions & Answers

reading a zipped file without unzipping it?

Dear all, I would like to ask how i can read a zipped file (file.gz) without actually unzipping it? i think there is a way to do so but i can't remember it.. can anyone help? thanks in advance.. (1 Reply)
Discussion started by: marwan
1 Replies

9. Shell Programming and Scripting

How to search a pattern inside a zipped file ie (.gz file) with out unzipping it

How to search a pattern inside a zipped file ie (.gz file) with out unzipping it? using grep command.. Bit urgent.. pls..help me (2 Replies)
Discussion started by: senraj01
2 Replies

10. UNIX for Dummies Questions & Answers

unzipping .zip file on HP and Solaris

I am transferring a large .zip file (20 GB) from an NT server to HP-UX and Solaris servers. Originally I tried to use info-zip's unzip, but I found out pretty quickly that it does not support files over 4GB. Any suggestions on how to work around this problem? Different decompression utility?... (9 Replies)
Discussion started by: dangral
9 Replies
Login or Register to Ask a Question