美文网首页
pigz多线程压缩

pigz多线程压缩

作者: 胡童远 | 来源:发表于2023-06-05 10:48 被阅读0次

https://anaconda.org/anaconda/pigz

conda install -c anaconda pigz
pigz -h
Usage: pigz [options] [files ...]
  will compress files in place, adding the suffix '.gz'. If no files are
  specified, stdin will be compressed to stdout. pigz does what gzip does,
  but spreads the work over multiple processors and cores when compressing.

Options:
  -0 to -9, -11        Compression level (level 11, zopfli, is much slower)
  --fast, --best       Compression levels 1 and 9 respectively
  -A, --alias xxx      Use xxx as the name for any --zip entry from stdin
  -b, --blocksize mmm  Set compression block size to mmmK (default 128K)
  -c, --stdout         Write all processed output to stdout (won't delete)
  -C, --comment ccc    Put comment ccc in the gzip or zip header
  -d, --decompress     Decompress the compressed input
  -f, --force          Force overwrite, compress .gz, links, and to terminal
  -F  --first          Do iterations first, before block split for -11
  -h, --help           Display a help screen and quit
  -i, --independent    Compress blocks independently for damage recovery
  -I, --iterations n   Number of iterations for -11 optimization
  -J, --maxsplits n    Maximum number of split blocks for -11
  -k, --keep           Do not delete original file after processing
  -K, --zip            Compress to PKWare zip (.zip) single entry format
  -l, --list           List the contents of the compressed input
  -L, --license        Display the pigz license and quit
  -m, --no-time        Do not store or restore mod time
  -M, --time           Store or restore mod time
  -n, --no-name        Do not store or restore file name or mod time
  -N, --name           Store or restore file name and mod time
  -O  --oneblock       Do not split into smaller blocks for -11
  -p, --processes n    Allow up to n compression threads (default is the
                       number of online processors, or 8 if unknown)
  -q, --quiet          Print no messages, even on error
  -r, --recursive      Process the contents of all subdirectories
  -R, --rsyncable      Input-determined block locations for rsync
  -S, --suffix .sss    Use suffix .sss instead of .gz (for compression)
  -t, --test           Test the integrity of the compressed input
  -v, --verbose        Provide more verbose output
  -V  --version        Show the version of pigz
  -Y  --synchronous    Force output file write to permanent storage
  -z, --zlib           Compress to zlib (.zz) instead of gzip format
  --                   All arguments after "--" are treated as files

使用

pigz -k -p 10 a.txt

-k keep original file
-p number of processors

相关文章

  • pigz多线程压缩工具&scp断点续传

    1.pigz多线程压缩工具 使用conda安装 多线程压缩 多线程解压 2.scp服务器间传文件及断点续传 服务器...

  • 多线程压缩工具pigz使用

    参考多线程压缩工具Pigz使用 学习Linux系统时都会学习这么几个压缩工具:gzip、bzip2、zip、xz,...

  • linux pigz多线程压缩

    linux pigz 快速压缩命令 功能:多线程压缩文件,比gzip快很多!!!我写教程,喜欢贴原链接,不单单呈现...

  • tar 使用pigz多线程打包

    安装 yum -y install pigz 压缩 tar cvf - zencart | pigz > zenc...

  • pigz

    apt-get install pigz 压缩: tar cvf - 目录名 | pigz -9 -p 24 > ...

  • pigz | Linux多线程压缩软件

    pigz充分利用了现代多核CPU的性能,大幅提高压缩解压的速度。在我的测试中,pigz比Ubuntu默认的压缩方式...

  • 批量多线程压缩

    pigzpigz 默认压缩为 gzip 格式,并在压缩之后删除原始文件.用法pigz [options] file...

  • pigz更快的压缩和解压工具

    pigz(parallel implementation of gzip)是一个并行执行的压缩工具,解压缩比gzi...

  • 利用pigz加快压缩速度

    今天要压一个源代码包,在清理完没有必要的保留的repo库文件后,整个源代码包的大小也有17G,不得不再次感叹代码数...

  • [pigz] tar.gz 压缩/解压

    pigz 参数-d, --decompress Decompress the compressed inp...

网友评论

      本文标题:pigz多线程压缩

      本文链接:https://www.haomeiwen.com/subject/knwiedtx.html