Francis
Francis

Reputation: 97

tar command on AIX is not working unzip

tar -zxvf unzip and untar command work on RHEL and Solaris however the not working on AIX 5/6/7 what is the equivalent command?

Upvotes: 1

Views: 1828

Answers (2)

Ankit Shubham
Ankit Shubham

Reputation: 3619

gunzip <filename>.tar.gz
tar xvf <filename>.tar

Note that gunzip command outputs a .tar file. Then tar xvf untars this .tar file.

Upvotes: 1

covener
covener

Reputation: 17886

A good answer was provided in a comment. Adding an answer, though.

The portable version of tar -zxvf is that I reach for on old non-linux unix systems is:

gzip -dc foo.tgz | tar xvf -

Upvotes: 1

Related Questions