SDK 多线程超快压缩/解压命令

文摘 Linux Ubuntu 2020-01-3 阅读:1789

linux_tar_gz.jpg

压缩命令:

tar --use-compress-program=pigz -cvpf - mt8321-alps-release-p0.mp2-tb-V3.136 | split -d -b 3072m - ./mt8321-alps-release-p0.mp2-tb-V3.136.tar.gz

如果需要排除某个目录,加入--exclude=待排除目录

tar --use-compress-program=pigz -cvpf - mt8321-alps-release-p0.mp2-tb-V3.136 --exclude=alps/out | split -d -b 3072m - ./mt8321-alps-release-p0.mp2-tb-V3.136.tar.gz

解压命令:

cat mt8321-alps-release-p0.mp2-tb-V3.136.tar.gz* | tar --use-compress-program=pigz -xvf -

:如提示 tar (grandchild): pigz: Cannot exec: No such file or directory
请先安装pigz:sudo apt-get install pigz



0条评论

© 2020 芯缘异码. Powered by Typecho