linux-command/command/bzcat.md

39 lines
576 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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 解压缩之后的文件内容。