您的位置:首页 > 运维架构 > Linux

linux 压缩工具之比较 (gzip,zip,bzip2,lzma,compress)

2014-01-26 15:37 896 查看
1. linux 下的常用压缩工具  (1)这里只涉及五种压缩工具:gzip,zip,bzip2,lzma,compress.   (2)tar+ gzip/bzip2/lzma 用法:压缩:   gzip: tar cvf /tmp/platinum.tar.gz /etc--gzip   bzip2: tar cvf /tmp/platinum.tar.bz2 /etc --bzip2    lzma: tar cvf /tmp/platinum.tar.lzma/etc --lzma解压:    gzip: tar xvf platinum.tar.gz--gzip    bzip2: tar xvf platinum.tar.bz2--bzip2    lzma: tar xvf platinum.tar.lzma--lzma2. 比较以上几种工具  其实已经有牛人做了详细的比较,如下图。我也简单的验证了这里的比较结果。  (下图来源于:http://blog.terzza.com/linux-compression-comparison-gzip-vs-bzip2-vs-lzma-vs-zip-vs-compress/)  (1)压缩比  (2)压缩速度  (3)解压缩速度  (4)结论:  If you need heavy compression and are willing to wait for it, use LZMA. If youwant to squash things a little, but don’t have much time, GZIP and ZIP will work just fine.
<--文章完-->
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: