Syntax
Compress [-dfvcV] [-B maxbits] [file...]
Parameters:
- C output result to standard output device (usually screen)
- F. Write the file forcibly. If the target file already exists, it will be overwritten (force)
- V prints program execution messages on the screen (verbose)
- B sets the upper limit of the number of common strings. It is calculated in bits and can be set to 9 to 16 bits. Because the larger the value, the more common strings can be used and the larger the compression ratio, the default value 16 bits (bits) is generally used)
- D. Decompress the compressed file.
- V. List version information
- Example:
- Compress source. dat to source. dat. Z. If source. dat. Z already exists, the content will be overwritten by the compressed file.
- Compress-f source. dat
- Compress source. dat to source. dat. Z and print the compression ratio.
- -V and-f can be used together.
- Compress-vf source. dat
- After the compressed data is output, import target. dat. Z to change the compressed file name.
- Compress-c source. dat> target. dat. Z
- -The larger the value of B, the larger the compression ratio. The value range is 9-16 and the default value is 16.
- Compress-B 12 source. dat
- Decompress source. dat. Z to source. dat. If the file already exists, press y to overwrite the file. If The-df program is used, the file is automatically overwritten. Because the system automatically adds. Z as the extension file name, source. dat is automatically treated as source. dat. Z.
- Compress-d source. dat
- Compress-d source. dat. Z