gunzip -9代表什么

之前用gunzip时有时候会用到-9这个参数,但是不知道为什么,只知道使用就是了。

今天有看到了,果断忍不住了,还是查一下吧

通过man gunzip可以知道

-# --fast --best

              Regulate the speed of compression using the specified digit #, where -1 or  --fast  indicates
              the fastest compression method (less compression) and -9 or --best indicates the slowest com‐
              pression method (best compression).  The default compression level is  -6  (that  is,  biased
              towards high compression at expense of speed).

可以知道-9表示最慢的压缩最好的压缩效果

其他还可以-1 ~-9,估计分别表示压缩参数吧

最后留一个例子吧

dd if /dev/sda1 | gzip -9 > ./sda1.img

表示备份sda1分区并且压缩保存到镜像中

如果要恢复

gzip -dc ./sda1.img | dd of=/dev/sda1

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值