📜  压缩 tar.gz unix 中的文件夹 - Shell-Bash 代码示例

📅  最后修改于: 2022-03-11 14:49:42.690000             🧑  作者: Mango

代码示例1
#Compress a folder in tar.gz format
tar -zcvf final_archive.tar.gz folder_to_compress/

#Multicore compression using pigz (can be installed with: conda install -c anaconda pigz)
tar cf - ./folder_to_compress/ | pigz -9 -p NPROC > final_archive.tar.gz