Read __linux for Linux compressed files

Source: Internet
Author: User
Tags bz2 rar

Linux compression decompression is not just a, there are a variety of ways to choose, even if the same command followed by the different options that come out of the effect is also different, here on the Linux compression decompression command to make a summary, in order to help in the future work.

Description: The tar command is only unpacked or packaged without the z, j, z option, not compressed

suffix. tar
Decompression command: Tar xvf infile.tar
Compression command: Tar cvf outfile.tar InFile
Compressible File types: Folders

Suffix. tar.gz
Decompression command: Tar zxvf InFile.tar.gz
Compression command: Tar zcvf OutFile.tar.gz InFile
Compressible File types: Folders

Suffix. tar.bz2
Decompression command: Tar jxvf InFile.tar.bz2
Compression command: Tar jcvf OutFile.tar.bz2 InFile
Compressible File types: Folders

Suffix. Tar. Z
Decompression command: Tar zxvf infile.tar.z
Compression command: Tar zcvf outfile.tar.z InFile
Compressible File types: Folders

Suffix. gz
Decompression command: gzip-d infile.gz or Gunzip infile.gz
Compression command: gzip InFile
compressible file types: Normal file/package file

suffix. zip
Decompression command: Unzip Infile.zip
Compression command: Zip outfile.zip InFile
compressible file types: Normal file list/package file

Suffix. bz2
Decompression command: bzip2-d infile.bz2 or Bunzip2 infile.bz2
Compression command: Bzip2-z InFile
compressible file types: Normal file/package file

Suffix. Z
Decompression command: uncompress infile.z
Compression command: Compress InFile
compressible File types: Packaging files

suffix. rar
Decompression command: rar x infile.rar
Compression command: RAR a InFile
Compressible File types: Folder/normal file list/packaging file

Almost the Linux compression decompression command is also these, the use of the way should be no problem.

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.