Reputation: 97
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
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
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