Compression tool Gzip,bzip2,xz,zip,tar

Source: Internet
Author: User

650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M01/7A/22/wKioL1ajGm7SJ74pAACpTfDfzm0296.png "title=" Clipboard.png "alt=" Wkiol1ajgm7sj74paacptfdfzm0296.png "/>

Gzip bzip2 XZ can specify the compression level, both 1 to 9, cannot specify the decompression directory, but a single file can use the- C parameter redirection (-C: The compression decompression results output to the standard output) implementation. Unzip can use-D to specify the Extract directory


Packaging Tool Tar:

Features are files, directories can be packaged into a file for easy management, and can be combined with gzip, bzip2, XZ and other compression tools to compress files, directories compressed packaging (in fact, packaged and then compressed), whether packaged or unpacked, the original file will not be deleted, and he will overwrite the current existing files or directories. You can also use the appropriate compression tool's text file to view commands.

Syntax: tar [-ZJXCVFPP] filename

  • -Z: Simultaneously with gzip compression

  • -j: Simultaneous compression with bzip2

  • -j: Simultaneously with XZ compression

  • -X: Unpacking or decompressing

  • -T: View the files inside the package or archive (TAR-TF filename, which is special when viewing XZ files, commands to be written as tar-Jtf filename)

  • -C: Build a tar package or zip file package

  • -C: Specify unzip directory

  • -V: Visualize

  • - F: followed by the file name, compressed with "-F filename", meaning that the compressed file name is filename, unzip with " -F FileName", meaning unzip filename. Note that if you have multiple parameter combinations with "-F", write "-F" to the last face.

  • -P: Use the properties of the original file to compress what properties to compress before compressing what properties. (not commonly used)

  • -P: Absolute path can be used. (not commonly used)

  • --exclude filename: Do not include the filename file when packaging or compressing. (not commonly used)


This article from "Good Freshman only gourd" blog, please be sure to keep this source http://zhuxingye.blog.51cto.com/11121336/1737857

Compression tool Gzip,bzip2,xz,zip,tar

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.