首页
首页 » 备份压缩 » compress

compress

compress
功能说明:压缩或解压文件。
语  法:compress [-cdfrvV][-b <压缩效率>][文件或目录...]
补充说明:compress是个历史悠久的压缩程序,文件经它压缩后,其名称后面会多出".Z"的扩展名。当要解压缩时,可执行uncompress指令。事实上uncompress是指向compress的符号连接,因此不论是压缩或解压缩,都可通过compress指令单独完成。
参  数:
 -b<压缩效率>  压缩效率是一个介于9-16的数值,预设值为"16",指定愈大的数值,压缩效率就愈高。 
 -c  把压缩后的文件输出到标准输出设备,不去更动原始文件。 
 -d  对文件进行解压缩而非压缩。 
 -f  强制保存压缩文件,不理会文件名称或硬连接是否存在,该文件是否为符号连接以及压缩效率高低的问题。 
 -r  递归处理,将指定目录下的所有文件及子目录一并处理。 
 -v  显示指令执行过程。 
 -V  显示指令版本及程序预设值。

compress

compress [options] files

Compress one or more files, replacing each with the compressed file of the same name with .Z appended. If no file is specified, compress standard input. Each file specified is compressed separately. compress ignores files that are symbolic links. See also the more common commands tar, gzip, and bzip2.

Options

-b maxbits

Limit the maximum number of bits.

-c

Write output to standard output, not to a .Z file.

-d

Decompress instead of compressing. Same as uncompress.

-f

Force generation of an output file even if one already exists.

-r

If any of the specified files is a directory, compress recursively.

-v

Print compression statistics.

-V

Print version and compilation information and then exit.