Tar extract Z file


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users Tar extract Z file
# 1  
Old 09-23-2019
Tar extract Z file

I was looking at this tutorial for tar extract Z file. Is there a reason why this did not work? I checked my man pages and it had a -Z option.

Code:
tar -xZvf /opt/Nimsoft/nimldr.tar.Z
tar (child): compress: Cannot exec: No such file or directory
tar (child): Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error is not recoverable: exiting now

Open/Extract taz/tz/tar.Z/Z File with Freeware on Windows/Mac/Linux, Free Download

This worked.

Code:
zcat *.Z | tar -xvf -
./
./SOLARIS_10_sparcv9/
./SOLARIS_10_sparcv9/nimldr
./LINUX_23_64/
./LINUX_23_64/nimldr
./AIX_6_64/
./AIX_6_64/nimldr
./HPUX_11_ia64/
./HPUX_11_ia64/nimldr
./SOLARIS_10_i386/
./SOLARIS_10_i386/nimldr
./LINUX_23/
./LINUX_23/nimldr
./HPUX_11_64/
./HPUX_11_64/nimldr
./LINUX_23_ppc64/
./LINUX_23_ppc64/nimldr
./SOLARIS_10_amd64/
./SOLARIS_10_amd64/nimldr
./LINUX_23_ppc64le/
./LINUX_23_ppc64le/nimldr

In Unix, how can I uncompress *.Z or *.tar.Z files?
# 2  
Old 09-23-2019
Code:
tar (child): compress: Cannot exec: No such file or directory

As the slightly irritating message states: the compress utility is not found. You have to install it.

In Ubuntu the corresponding package is called ncompress.
These 2 Users Gave Thanks to stomp For This Post:
# 3  
Old 09-24-2019
GNU Zip will decompress .Z files, so
Code:
gunzip -c somefile.tar.Z | tar xf -

or
Code:
zcat somefile.tar.Z  | tar xf -

should work without having to install the compress utility. It may even be possible to use GNU Zip through tar with the lower-case-z option:
Code:
tar zxf somefile.tar.Z

Andrew
This User Gave Thanks to apmcd47 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

Want to extract particular file from tar.lzo

Hi Guys, Could you please help to get specific files from /di/data/prd/serial/lookup/abetlp11_lookup_20180206.tar.lzo without extracting whole compressed file tar.lzo as its size is huge file name - xyz.lkp Thanks (1 Reply)
Discussion started by: himanshupant
1 Replies

2. UNIX for Dummies Questions & Answers

Extract .zip file without using unzip,tar

Hi, Need to extract a file containing multiple .txt files without using tar/unzip as they are not available (1 Reply)
Discussion started by: santoshdrkr
1 Replies

3. Solaris

HOW TO extract.tar file to specific directory..?

Hi all, In Solaris howto extract tar file to specific folder. This is what we do in Linux, but how to do the same thing in Solaris ? -tar -xzvf /tmp/etc.tar.bz -C /tmp (Will extract in /tmp dir) 3.gzip COMPRESSION AND EXTRACTION -tar -czvf /tmp/etc.tar.bz /etc -du ... (5 Replies)
Discussion started by: manalisharmabe
5 Replies

4. UNIX for Dummies Questions & Answers

Do I need to extract the entire tar file to confirm the tar folder is fine?

I would like to confirm my file.tar is been tar-ed correctly before I remove them. But I have very limited disc space to untar it. Can I just do the listing instead of actual extract it? Can I say confirm folder integrity if the listing is sucessful without problem? tar tvf file1.tar ... (1 Reply)
Discussion started by: vivien_chu
1 Replies

5. UNIX for Dummies Questions & Answers

After extract from tar, commands cannot see file?

Hi, Hi recently downloaded the source code from Advanced Programming in the Unix Envrionment 2e and extracted the source from its tar file. The extracted files have these characteristics: 1) They can can be seen in a directory listing and brought up for viewing in emacs; 2) They cannot be... (2 Replies)
Discussion started by: TheTaoOfPhil
2 Replies

6. UNIX for Advanced & Expert Users

How to extract a particular file in tar.Z format

Hi , I need to extarct only a particulay files from the tar.Z. ie i need to extract one.txt from test.tar.Z. The test.tar.Z may contain lot of file and folders. Please help me to extract particular file to some location. Regards, Kalai. (1 Reply)
Discussion started by: kalpeer
1 Replies

7. UNIX for Dummies Questions & Answers

tar command help -- extract single file

Hi, I want to view/display the contents of one file in tar file. For example if the tar file is sam.tar.gz and one of the file inside is E1.txt, how do i view the contents of this E1.txt file. Olso if I want to extract the E1.txt file only from sam.tar.gz how can i do that. Thanks in... (7 Replies)
Discussion started by: icefish
7 Replies

8. Shell Programming and Scripting

tar: extract single file to different filepath

Hi, This is my first post here - I'm hoping I can get some help! I have searched these forums and othersand not getting anything that works. I am trying to extract a single file from a tar archive to a diffierent location than it will default to. For example my tar log shows me ... a... (3 Replies)
Discussion started by: littleIdiot
3 Replies

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

10. UNIX for Dummies Questions & Answers

cant extract files from a tar file

hi everyone i have a tar file which was in AIX box. its 300mb. i cant untar in windowsxp home. I just get an empty folder with no files when i extract. i dont get any bad header or any such error. i am using IZARC which is a freeware. Not sure if i should try winzip or winrar. any help (2 Replies)
Discussion started by: bryan
2 Replies
Login or Register to Ask a Question