Three kinds of commands for extracting files under Linux?

Source: Internet
Author: User
It depends on which compression you use for your compressed files:
gzip, compressed file name: Zip or GZ, decompression command: Unzip
BZIP2, compressed file name: BZ, decompression command; bzip2-d
The above two are the most commonly used compression methods, generally under Linux can be packaged and compressed (or decompressed) through the tar command. For example:
TAR-ZCVF file file.tar.gz is packaged and compressed into gzip format, where the-C command is to create a tar package, the-z parameter is specified to compress into gzip format;
TAR-ZXVF file.tar.gz Unpacking command, where-X is the unpacking command,-z specifies that the uncompressed format is gzip
TAR-JCVF file file.tar.bz2 is packaged and compressed into bzip2 format, where-C is the creation of the tar package, and the-J parameter is compressed into bzip2 format;
TAR-JXVF file.tar.gz The Unpacking command, where-X is the unpacking command,-J specifies that the decompression format is bzip2

Three kinds of commands for extracting files under Linux?

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.