mirror of
https://github.com/Estom/notes.git
synced 2026-04-13 13:09:50 +08:00
linux 命令和教程补充
This commit is contained in:
38
Linux/command/bzcat.md
Normal file
38
Linux/command/bzcat.md
Normal file
@@ -0,0 +1,38 @@
|
||||
bzcat
|
||||
===
|
||||
|
||||
解压缩指定的.bz2文件
|
||||
|
||||
## 补充说明
|
||||
|
||||
**bzcat命令** 解压缩指定的.bz2文件,并显示解压缩后的文件内容。保留原压缩文件,并且不生成解压缩后的文件。
|
||||
|
||||
### 语法
|
||||
|
||||
```shell
|
||||
bzcat(参数)
|
||||
```
|
||||
|
||||
### 参数
|
||||
|
||||
.bz2压缩文件:指定要显示内容的.bz2压缩文件。
|
||||
|
||||
### 实例
|
||||
|
||||
将`/tmp/man.config`以bzip2格式压缩:
|
||||
|
||||
```shell
|
||||
bzip2 -z man.config
|
||||
```
|
||||
|
||||
此时man.config会变成man.config.bz2
|
||||
|
||||
将上面的压缩文件内容读出来:
|
||||
|
||||
```shell
|
||||
bzcat man.config.bz2
|
||||
```
|
||||
|
||||
此时屏幕上会显示 man.config.bz2 解压缩之后的文件内容。
|
||||
|
||||
|
||||
Reference in New Issue
Block a user