Linux的pigz命令怎么使用
发表于:2025-11-09 作者:千家信息网编辑
千家信息网最后更新 2025年11月09日,这篇文章主要介绍"Linux的pigz命令怎么使用",在日常操作中,相信很多人在Linux的pigz命令怎么使用问题上存在疑惑,小编查阅了各式资料,整理出简单好用的操作方法,希望对大家解答"Linux
千家信息网最后更新 2025年11月09日Linux的pigz命令怎么使用
这篇文章主要介绍"Linux的pigz命令怎么使用",在日常操作中,相信很多人在Linux的pigz命令怎么使用问题上存在疑惑,小编查阅了各式资料,整理出简单好用的操作方法,希望对大家解答"Linux的pigz命令怎么使用"的疑惑有所帮助!接下来,请跟着小编一起来学习吧!
Linux常用命令pigz命令可以用来解压缩文件,最重要的是支持多线程并行处理,解压缩比gzip快。

pigz
可以用来解压缩文件,gzip的并行实现升级版
语法
pigz [ -cdfhikKlLmMnNqrRtz0..9,11 ] [ -b blocksize ] [ -p threads ] [ -S suffix ] [ name ... ] unpigz [ -cfhikKlLmMnNqrRtz ] [ -b blocksize ] [ -p threads ] [ -S suffix ] [ name ... ]参数
-0 to -9, -11 # Compression level (level 11, zopfli, is much slower) --fast, --best # Compression levels 1 and 9 respectively -b, --blocksize mmm # Set compression block size to mmmK (default 128K) -c, --stdout # Write all processed output to stdout (won't delete) -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实例
可以结合tar使用, 压缩命令
tar -cvf - dir1 dir2 dir3 | pigz -p 8 > output.tgz解压命令
pigz -p 8 -d output.tgz如果是gzip格式,也支持用tar解压
tar -xzvf output.tgz到此,关于"Linux的pigz命令怎么使用"的学习就结束了,希望能够解决大家的疑惑。理论与实践的搭配能更好的帮助大家学习,快去试试吧!若想继续学习更多相关知识,请继续关注网站,小编会继续努力为大家带来更多实用的文章!
命令
学习
文件
更多
帮助
支持
实用
重要
接下来
升级版
参数
实例
常用
文章
方法
格式
理论
知识
篇文章
线程
数据库的安全要保护哪些东西
数据库安全各自的含义是什么
生产安全数据库录入
数据库的安全性及管理
数据库安全策略包含哪些
海淀数据库安全审计系统
建立农村房屋安全信息数据库
易用的数据库客户端支持安全管理
连接数据库失败ssl安全错误
数据库的锁怎样保障安全
linux服务器登陆管理工具
软件开发中心不符合项
网络安全事故追究制度
阴阳师服务器登陆不上
机架4u服务器
济南智宸网络技术有限公司位置
vb读取图片文件数据库
现在服务器4核8的需要多少钱
数据库顶级的新闻
上海莜贝网络技术有限公司
怎么看电脑服务器和数据库名称
艾尔登服务器正在维修
手机访问web服务器
江苏省二中网络安全培训
双代号网络技术论文
网络安全windows
远程公司网络安全吗
ace动漫远程服务器
数字贸易壁垒限制指数数据库
高频服务器散热器
快手网络安全白皮书发布
在阿里买域名在腾讯买服务器
安徽召开全省网络安全会议
dba数据库管理员要素
网络安全纳入医院绩效考核
文档批量删除数据库
学唱歌软件开发
幼儿园关于网络安全的公众号
河源网络技术基础知识
衡水最初理想软件开发公司