How to uncompress and untar a file in one command.

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


Question by:AIX25
LVL 68

Accepted Solution

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

LVL 48

Expert Comment

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

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

Open in new window


Author Comment

ID: 36815046
Thank you Tintin for that comment.

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

Thank you

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

FreeBSD on EC2 FreeBSD (https://www.freebsd.org) is a robust Unix-like operating system that has been around for many years. FreeBSD is available on Amazon EC2 through Amazon Machine Images (AMIs) provided by FreeBSD developer and security office…
Why Shell Scripting? Shell scripting is a powerful method of accessing UNIX systems and it is very flexible. Shell scripts are required when we want to execute a sequence of commands in Unix flavored operating systems. “Shell” is the command line i…
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.
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.

607 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