Update gzip.md

补充-c参数
This commit is contained in:
谢民皆 2020-12-14 20:21:53 +08:00 committed by 小弟调调™
parent d5b4d4c9de
commit f7c1e944f7
1 changed files with 8 additions and 0 deletions

View File

@ -36,6 +36,7 @@ gzip(选项)(参数)
--best此参数的效果和指定“-9”参数相同
--fast此参数的效果和指定“-1”参数相同。
-num 用指定的数字num调整压缩的速度-1或--fast表示最快压缩方法低压缩比-9或--best表示最慢压缩方法高压缩比。系统缺省值为6。
-c或--stdout或--to-stdout保留原始文件生成标准输出流结合重定向使用
```
### 参数
@ -82,5 +83,12 @@ gzip -rv test6
gzip -dr test6
```
保留原始文件,把压缩/解压流重定向到新文件
```shell
gzip -c aa > aa.gz
gzip -dc bb.gz > bb
```
<!-- Linux命令行搜索引擎https://jaywcjlove.github.io/linux-command/ -->