Linux compress command details how to use the Linux compress command

Source: Internet
Author: User

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

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.