博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
bzip2 gzip压缩率_如何在Linux中使用gzip,bzip2、7z,rar和zip压缩/解压缩文件
阅读量:2517 次
发布时间:2019-05-11

本文共 1443 字,大约阅读时间需要 4 分钟。

bzip2 gzip压缩率

Compress/uncompress are frequent operations. The normal for compressing/uncompressing in is gzip, bzip2, 7z, rar and zip. This post introduces how to compress and uncompress file in Linux using these tools. We use best compressing rate with all these tools and mark the options for “best rate” in bold fonts. We can delete these options if we don’t so care about the size of the compressed file and want a faster compressing.

压缩/解压缩是经常的操作。 在压缩/解压缩的常规是gzip,bzip2、7z,rar和zip。 这篇文章介绍了如何使用这些工具在Linux中压缩和解压缩文件。 我们使用所有这些工具的最佳压缩率,并以粗体标记“最佳率”的选项。 如果我们不太在意压缩文件的大小并希望更快地进行压缩,则可以删除这些选项。

The example we use here is to compress a directory dir recursively into a compressed file with particular file extension which specifies the compressing method.

我们在此使用的示例是将目录dir递归压缩为具有特定文件扩展名的压缩文件,该文件扩展名指定了压缩方法。

gzip的 (gzip )

Compress

压缩

gzip -r --best -c dir > ./dir.gz

Uncompress

解压

gunzip ./dir.gz

bzip2的 (bzip2 )

Compress

压缩

tar -c dir | bzip2 --best -c > ./dir.tar.bz2

Uncompress

解压

tar xf ./dir.tar.bz2

7Z (7z )

Compress

压缩

7za -t7z -m0=lzma -mx=9 -mfb=64 -md=32m -ms=on a ./dir.7z dir

Uncompress

解压

7za x ./dir.7z

RAR (RAR )

Compress

压缩

rar -m5 a ./dir.rar dir

Uncompress

解压

rar x ./dir.rar

(ZIP )

Compress

压缩

zip -r -9 ./dir.zip dir

Uncompress

解压

unzip ./dir.zip

We can delete the options in black fonts for faster compressing and shorter command line instead of best compressing rate.

我们可以删除黑色字体中的选项,以加快压缩速度并缩短命令行,而不是获得最佳压缩率。

翻译自:

bzip2 gzip压缩率

转载地址:http://ufowd.baihongyu.com/

你可能感兴趣的文章
采访吴岳师兄有感 by 王宇飞
查看>>
LVS简略介绍
查看>>
hdu 1021 Fibonacci Again
查看>>
JVM架构_XmnXmsXmxXss有什么区别:转
查看>>
PHPExcel 使用心得
查看>>
洛谷 P3374 【模板】树状数组 1(单点加,区间和)
查看>>
verilog 代码编写小记
查看>>
PyQT的安装和配置
查看>>
从 docker 到 runC
查看>>
守护进程
查看>>
php数组
查看>>
Linux 防火墙
查看>>
互联网金融P2P主业务场景自动化测试
查看>>
My third day of OpenCV
查看>>
Android的View和ViewGroup分析
查看>>
echarts.js中的图表大小自适应
查看>>
Delphi的FIFO实现
查看>>
牛客网暑期ACM多校训练营(第一场) - J Different Integers(线段数组or莫队)
查看>>
(转)AS3 面相对象 高级话题
查看>>
Missile
查看>>