Unzipping .Z file in UNIX


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Unzipping .Z file in UNIX
# 1  
Old 01-29-2013
Unzipping .Z file in UNIX

Hi ,

How can I unzip a .Z file in Unix?

Thanks and regards,
Anupam
# 2  
Old 01-29-2013
.Z is the standard extension for compressed files so you would typically use $ uncompress file.Z

.z (lowercase Z) is the standard extension for packed files (use unpack to for them).

Last edited by Chubler_XL; 01-29-2013 at 10:45 PM..
# 3  
Old 01-29-2013
Hi Chubler_XL

I am getting following error when I am trying uncompress

Code:
-bash: uncompress: command not found

---------- Post updated at 08:28 AM ---------- Previous update was at 08:19 AM ----------

Hi

gzip -d worked. Thanks anyway.
# 4  
Old 01-30-2013
Quote:
Originally Posted by Anupam_Halder

Hi

gzip -d worked. Thanks anyway.
On a modern *nix system, gzip -d will do the work of older utilities such as uncompress - from man gzip

Code:
gunzip can currently decompress files created by gzip, zip, compress, compress -H  or  pack.

Cheers,
ZB
This User Gave Thanks to zazzybob For This Post:
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Error when unzipping a file with extension .gz

I am trying to unzip a file with name D_R_38957222_20111410.txt.gz using the below command. gunzip D_R_38957222_20111410.txt.gz However, I am getting the following error while using the gunzip command as below... gunzip: D_R_38957222_20111410.txt.gz: invalid compressed data--crc error ... (24 Replies)
Discussion started by: dhruuv369
24 Replies

2. Shell Programming and Scripting

Checking if file exists and unzipping

Hey, I am new to scripting and was wondering what is wrong with this if statement. I want to check if file exists and the if it does to unzip it. I program it as follows if ; then gunzip *_filename.gz fi Thanks in advance! Please use code tags next time for your code and data. (10 Replies)
Discussion started by: mostarac2487
10 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. 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

8. 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

9. 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

10. UNIX for Dummies Questions & Answers

Unzipping problems in Unix

Hi, I have a zip file in a unix file system that contains approximately 1000000 files. I would like to unzip this file. When I use unzip, the unzip command starts extracting the files , but after extracting 65535 files, I am getting the following error. "note: didn't find... (1 Reply)
Discussion started by: narayanan0
1 Replies
Login or Register to Ask a Question