标签 compress 下的文章

xz 格式是一种新的压缩率高的格式,但是需要消耗很多时间进行压缩,幸好支持多线程。 和 tar 命令联合使用的时候,如下格式即可。T0 表示尽可能多的线程。

tar cvf archive.tar.xz --use-compress-program='xz -1T0' *.csv

参考: https://www.baeldung.com/linux/xz-compression https://stackoverflow.com/questions/22244962/multiprocessor-support-for-xz https://www.itranslater.com/qa/details/2122665251421291520 https://github.com/batocera-linux/batocera.linux/pull/1415