[pigz] tar.gz 压缩/解压

#目标 result 文件夹
#压缩
tar -chf  - result | pigz -p 16  -k  > result.tar.gz 
#解压,保留原始压缩文件
pigz -p 2 -k -c -d result.tar.gz | tar -xf  -

pigz 参数
-d, --decompress Decompress the compressed input
-p, --processes n Allow up to n compression threads (default is the number of online processors, or 8 if unknown)
-c, --stdout Write all processed output to stdout (won't delete)
-k, --keep Do not delete original file after processing

你可能感兴趣的:([pigz] tar.gz 压缩/解压)