AIX compression with TAR, COMPRESS, GZIP, ZCAT

tar

tar in AIX by default does not support compression. You will need to incorporate with gzip command to have it tar and compress at the same time.
$ tar cvf test.tar test                             # pure tar only
$ tar cvf - test | gzip > test.tar.gz        # tar and compress together

gzip / gunzip

$ gunzip -c test.tar.gz | tar tvf -           # list compress files
$ gunzip -c test.tar.gz | tar xvf -           # decompress files

compress / uncompress

http://poweritpro.com/aix/use-aix-tar-command-archive-large-files
native AIX compression tool
$ compress test.tar                                 # compress file with .Z extension
$ uncompress test.tar.Z                          # decompress .Z file

zcat


$ zcat test.tar.Z | tar tvf -                        # list compress files

No comments: