tar and gzip in a single command in AIX

To compress:

“tar cvf – abc | gzip > abc.tar.gz”

“tar cvf – abc | bzip2 > abc.tar.bz2”

To uncompress:

“gunzip < abc.tar.gz | tar xvf -”

“bzip2 < abc.tar.bz2 | tar xvf -“

發表迴響

你的電子郵件位址並不會被公開。 必要欄位標記為 *