uncompressing file


 
Thread Tools Search this Thread
Operating Systems AIX uncompressing file
# 1  
Old 06-28-2006
uncompressing file

Hi,
how do u uncompress a .Z file?

i have a file called software.all.Z and have to change it to software.all. how to do that?

thanks!

karthik
# 2  
Old 06-28-2006
uncompressing .Z file

I find from website that its uncompress .Z

is that correct?
replies would be appreciated.
thanks!
# 3  
Old 06-28-2006
a few pointers;

use the 'file' command to determine what type of file you're dealing with. This doesn't just work for compressed files, this works for all files. It's useful because a file extension can be anything, you can call things what you want. The 'file' command examines the actual contents of the file and returns a guess at the contents by matching it up with a database of 'fingerprints' (/etc/magic) See below

# file passwd.Z
passwd.Z: compressed data block compressed 16 bit

In this example I've used the file command to determine that the file 'passwd.Z' is a compressed file made using the UNIX 'compress' command.

And yes, you're right, you uncompress these files using the command 'uncompress' - but you have to tell it the exact file you want to uncompress! So in your case you want to use 'uncompress software.all.Z'

Hope this helps!

Also - I'm not meaning to be condescending, but your command line skills are a little lacking. I wouldn't normally be this horrible, but as most AIX boxes are used in corporate environments i fee i should. If you're doing this stuff at work on a production system then be damn sure you either know what you're doing or have the sign-off from a direct superior, messing around on the command line is an excellent wasy to lose your job!
# 4  
Old 06-28-2006
uncompressing .Z file

Alex: thanks for ur advice. its very well taken.
I was just testing doing aix at home and not in production env.
Iam still a novice and trying to learn at my pace.
Thanks very much
karthik
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Shell script (sh file) logic to compare contents of one file with another file and output to file

Shell script logic Hi I have 2 input files like with file 1 content as (file1) "BRGTEST-242" a.txt "BRGTEST-240" a.txt "BRGTEST-219" e.txt File 2 contents as fle(2) "BRGTEST-244" a.txt "BRGTEST-244" b.txt "BRGTEST-231" c.txt "BRGTEST-231" d.txt "BRGTEST-221" e.txt I want to get... (22 Replies)
Discussion started by: pottic
22 Replies

2. Shell Programming and Scripting

Is the following script uncompressing .gz file into txt file

what does the below script doing, the first path with wild card clinical_event* has all .gz compressed files multiple and the final path has 1 single clinical_event.txt file almost 350GB in size. hadoop fs -text /user/hive/warehouse/stage.db/CLINICAL_EVENT/CLINICAL_EVENT* | hadoop fs -put... (4 Replies)
Discussion started by: cplusplus1
4 Replies

3. OS X (Apple)

Uncompressing but not extracting tar.Z file

Hi I have a few hundred files with extension .tar.Z. These files were archived (tar) and compressed (Z) on a UNIX system. I need to unzip them but not extract them. In other words they need to go to .tar extension. I would like to do this on my MAC or on a windows pc. I do not have a UNIX... (3 Replies)
Discussion started by: kalbano
3 Replies

4. Shell Programming and Scripting

Compare 2 text file with 1 column in each file and write mismatch data to 3rd file

Hi, I need to compare 2 text files with around 60000 rows and 1 column. I need to compare these and write the mismatch data to 3rd file. File1 - file2 = file3 wc -l file1.txt 58112 wc -l file2.txt 55260 head -5 file1.txt 101214200123 101214700300 101250030067 101214100500... (10 Replies)
Discussion started by: Divya Nochiyil
10 Replies

5. Shell Programming and Scripting

Uncompressing .zip file specific directory Fedora 14

Hello, I have Fedora 14 installed on my machine I have a .zip file ( some latex package) which I want to unzip to some location in the Latex paths /usr/share.../texmf/.. so I went to super user mode, created the directory for this package over there, mkdir logo and tried... (1 Reply)
Discussion started by: ajayram
1 Replies

6. Shell Programming and Scripting

Match list of strings in File A and compare with File B, C and write to a output file in CSV format

Hi Friends, I'm a great fan of this forum... it has helped me tone my skills in shell scripting. I have a challenge here, which I'm sure you guys would help me in achieving... File A has a list of job ids and I need to compare this with the File B (*.log) and File C (extend *.log) and copy... (6 Replies)
Discussion started by: asnandhakumar
6 Replies

7. Shell Programming and Scripting

extract one file form .tar.gz without uncompressing .tar.gz file

hi all, kindly help me how to extract one file form .tar.gz without uncompressing .tar.gz file. thanks in advance bali (2 Replies)
Discussion started by: balireddy_77
2 Replies

8. Solaris

uncompressing a .gz file

Hi Friends, i am trying to uncompress a file which is of the following type filename.tar.gz. when i am using gunzip filename.tar.gz to unzip it, i am getting the error as filename .tar.gz: invalid compressed data--format violated what is the mistake that i am doing ? any other way to... (2 Replies)
Discussion started by: sveera
2 Replies

9. UNIX for Dummies Questions & Answers

problem uncompressing tar.gz files

Whenever I try to uncompress file.tar.gz I always get message 'tar: directory checksum error'. I think because of this some of the directories might not be uncompressing properly. Why do I get this message? I do uncompress on UNIX Solaris 5.8. Oh, if I do the same thing on Fedora 3 everything works... (14 Replies)
Discussion started by: webtekie
14 Replies

10. Programming

Uncompressing a Linux file on HP-UX

Hi!! All, I have a compressed C file made on Linux. On Linux I used to uncompress it using the command: zcat filename -xvf- |tar I am not able to uncompress the same on Hp-UX-10.2. Could someone help me out how to do it ?? Do I have to use any other command to uncompress it?? (2 Replies)
Discussion started by: jyotipg
2 Replies
Login or Register to Ask a Question