Solved

How to uncompress and untar a file in one command.

Posted on 2011-09-28
3
436 Views
Last Modified: 2013-11-17
How do I uncompress and untar a file below in one command?

filename.tar.Z

Thanks
0
Comment
Question by:AIX25
3 Comments
 
LVL 68

Accepted Solution

by:
woolmilkporc earned 500 total points
ID: 36717906
That's not possible with AIX tar.
Get GNU tar from perzl.org and use its "-z" flag,

wmp
0
 
LVL 48

Expert Comment

by:Tintin
ID: 36813179
OK, not one command, but doesn't require GNU tar


uncompress -c filename.tar.Z | tar xvf -

Open in new window

0
 

Author Comment

by:AIX25
ID: 36815046
Thank you Tintin for that comment.

Tintin and Woolmilkporc, please look at question "ID: 27344252 "..

Thank you
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Let's say you need to move the data of a file system from one partition to another. This generally involves dismounting the file system, backing it up to tapes, and restoring it to a new partition. You may also copy the file system from one place to…
This tech tip describes how to install the Solaris Operating System from a tape backup that was created using the Solaris flash archive utility. I have used this procedure on the Solaris 8 and 9 OS, and it shoudl also work well on the Solaris 10 rel…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

914 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now