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

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

linux_tar_gz.jpg

压缩命令:

tar --use-compress-program=pigz -cvpf - alps | split -d -b 3072m - ./alps_20200805.tar.gz

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

tar --use-compress-program=pigz -cvpf - alps --exclude=alps/out | split -d -b 3072m - ./alps_20200805.tar.gz

解压命令:

cat alps_20200805.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条评论

© 2021 芯缘异码. Powered by Typecho