8.60. Gzip-1.10

Gzip 软件包包含压缩和解压缩文件的程序。

估计构建时间: 0.1 SBU
需要硬盘空间: 19 MB

8.60.1. 安装 Gzip

准备编译 Gzip:

./configure --prefix=/usr

编译该软件包:

make

运行以下命令以测试编译结果:

make check

安装该软件包:

make install

8.60.2. Gzip 的内容

安装的程序: gunzip, gzexe, gzip, uncompress (与 gunzip 互为硬链接), zcat, zcmp, zdiff, zegrep, zfgrep, zforce, zgrep, zless, zmore, 以及 znew

简要描述

gunzip

解压缩 gzip 压缩的文件

gzexe

创建自解压可执行文件

gzip

使用 Lempel-Ziv (LZ77) 编码压缩文件

uncompress

解压压缩文件

zcat

将给定 gzip 压缩文件解压到标准输出

zcmp

在 gzip 压缩文件上运行 cmp

zdiff

在 gzip 压缩文件上运行 diff

zegrep

在 gzip 压缩文件上运行 egrep

zfgrep

在 gzip 压缩文件上运行 fgrep

zforce

为给定所有文件中的 gzip 压缩文件确保 .gz 扩展名,这样 gzip 就不会重复压缩它们;在文件传输过程中文件名被截断时,这个命令很有用

zgrep

在 gzip 压缩文件上运行 grep

zless

在 gzip 压缩文件上运行 less

zmore

在 gzip 压缩文件上运行 more

znew

compress 格式压缩文件重新压缩为 gzip 格式 —— 转换 .Z 文件为 .gz 文件