pigz

可以用来解压缩文件,gzip的并行实现升级版

补充说明

pigz命令可以用来解压缩文件,最重要的是支持多线程并行处理,解压缩比gzip快。主页: http://zlib.net/pigz/

语法

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指令,Linux命令手册相关推荐

  1. linux蜂鸣器驱动指令,linux蜂鸣器驱动 蜂鸣器--LINUX.doc

    linux蜂鸣器驱动 蜂鸣器--LINUX 导读:就爱阅读网友为您分享以下"蜂鸣器--LINUX"的资讯,希望对您有所帮助,感谢您对92的支持! //mux = 1/16 tcfg ...

  2. linux ping大包指令,linux下ping命令使用详解,

    linux下ping命令使用详解, •ping命令一般用于检测网络通与不通,也叫时延,其值越大,速度越慢PING(PacketInternetGrope),因特网包探索器,用于测试网络连接量的程序. ...

  3. linux 中 id指令,Linux id 命令

    要登入一台计算机,我们需要一个用户名.用户名是一个可以被计算机识别的身份.基于此,计算机会对使用这个用户名的登陆的人应用一系列的规则.在Linux系统下,我们可以使用 id 命令. 什么是 id 命令 ...

  4. linux df -h指令,Linux df 命令使用参数详解

    df命令用来检查linux系统的文件系统的磁盘空间使用情况. 语法及格式 df [选项] [文件名] 常见参数 -a:--all,显示所有的文件系统,包括虚拟文件系统,参考示例2. -B:--bloc ...

  5. linux设备巡检指令,Linux系统巡检常用命令

    Linux系统需要定期巡检,以检查服务器软硬件使用情况,相当于对人的体检,确保可以及时发现问题.解决问题,降低损失,常用的巡检命令如下: # uname -a # 查看内核/操作系统/CPU信息 # ...

  6. linux小火车指令,Linux 好玩的小命令–linux小火车

    本以为linux命令行只是枯燥的命令输入和输出,今天在网上看到一个好玩的命令,叫linux 小火车 首先安装:sudo apt-get install sl  然后执行:sl 命令 会在界面上跑出来一 ...

  7. linux中top指令,Linux下top命令详解

    原标题:Linux下top命令详解 1.简介 top命令是Linux下常用的性能分析工具,能够实时显示系统中各个进程的资源占用状况,类似于Windows的任务管理器.top显示系统当前的进程和其他状况 ...

  8. linux 用户管理 指令,Linux 用户管理常用命令

    前言 1. 用户名和密码 在linux的管理中,相当重要的一环就是管理用户,不是什么人都可以登录服务器的,若有人要登录服务器,必须申请相关的权限,经过管理员许可才可以登录服务器.虽然我们登录服务器时输 ...

  9. linux中xjvf指令,linux解压缩命令小结

    tar解压缩命令:用tar命令压缩的包称为tar包,通常以.tar结尾,常用参数如下: -v--表示显示所有过程 -f--表示指定包的文件名 -c--表示创建新的tar包 例如:tar -cf hid ...

最新文章

  1. [个人博客作业Week7]软件工程团队项目感想与反思
  2. Android app按三层架构+MVC整理(重构)代码可行吗
  3. 2017-08-10 前端日报
  4. Unity3D学习笔记(七):叉乘和四元素
  5. leetcode 802. Find Eventual Safe States | 802. 找到最终的安全状态(有向图DFS)
  6. linxu安装OSX
  7. Hibernate如何存储二级缓存条目
  8. CF Vicious Keyboard 构造水题
  9. Mac上运行windows,你还在用双系统or虚拟机?
  10. IP代理软件哪个比较好
  11. Markdown离线编辑器
  12. Cint() , int(),round() , fix() 的区别与联系
  13. 未来计算机和ai应用,计算机人工智能技术的应用与发展(1)
  14. bypass最新版d盾mysql_D盾一句话动态代码执行拦截bypass
  15. 日期时间存入数据库会差一天?
  16. thingsboard-部件库开发 之 rpc-部件开发
  17. SolidWorks装配体及约束快速导入Adams
  18. 【Flask学习】1.2Flask的工作方式
  19. php伪造来路301,使用 fsockopen 伪造来路
  20. 使用CMAKE和交叉编译工具链

热门文章

  1. 编写高质量代码的50条黄金守则-Day 04(首选字符串插值)
  2. C#LeetCode刷题-分治算法
  3. C#LeetCode刷题之#169-求众数(Majority Element)
  4. 万物皆可爬系列使用python爬阴阳师图片
  5. 一些前端常用工具的生命周期
  6. 【mysql】显式加锁
  7. 二进制数据结构:JavaScript中的树和堆简介
  8. filter wiz_Grid Wiz简介:只需一瞬间即可制作出具有自定义浏览器支持CSS网格框架。
  9. SpringBoot-开发小技巧
  10. PyQt5多线程的执行和停止