Linux compression, unzip files

Source: Internet
Author: User
Tags bz2

For file compression and decompression in the. tar format it is common to use the same command today for files in. zip format. I was really stupid enough to ignore the suffix format ...

1. For tar format filescompression: TAR–ZCVF compressed after the name of the compressed directory//TAR-ZCVF A.tar aDecompression: TAR–ZXVF the name after compression//TAR-ZXVF A.tar  2. For zip format Filescompression: Zip filename.zip filesdecompression: Unzip Filename.zipfurther understanding,Linux comes with a unzip program that can unzip the file,
The Decompression command is: Unzip Filename.zip
also provides a zip program to compress the zip file , the command iszip filename.zip files
files will be compressed to Filename.zip
after that, I notice the file suffix name, different suffix of the file decompression and compression of the command are not the same, and for this summarizes some other formats of file decompression methods:
1, *.tar with TAR–XVF decompression
2, *.gz with gzip-d or gunzip decompression
3, *. tar.gz and *.tgz with TAR–XZF decompression
4, *.bz2 with bzip2-d or with bunzip2 decompression
5, *.tar.bz2 with TAR–XJF decompression
6, *. Z Extract with Uncompress
7, *.tar. Z Extract with Tar–xzf
8, *.rar with Unrar e decompression
9, *.zip with unzip decompression


Linux compression, unzip files

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.