Linux: Compression Decompression command

Source: Internet
Author: User

1. Unzip the command:tar : Tar xvf filename.tar Pack: Tar cvf filename.tar dirname (Note: Tar is packaged, not compressed!) ) ———————————————. GZ Decompression 1:gunzip filename.gz decompression 2:gzip -d filename.gz compression: gzip filename.tar.gz    .TGZ Decompression: tar zxvf filename.tar.gz compression: Tar zcvf filename.tar.gz dirname —————— —————————. bz2 Decompression 1:bzip2 -d filename.bz2 decompression 2:bunzip2 filename.bz2 compression: bzip2 -z  FILENAME.TAR.BZ2 Decompression: tar jxvf filename.tar.bz2 compression: Tar jcvf filename.tar.bz2 dirname ————— ——————————. BZ Decompression 1:bzip2 -d filename.bz decompression 2:bunzip2 filename.bz compression: unknown. tar.bz decompression:tar jxvf  FILENAME.TAR.BZ Compression: Unknown ———————————————. Z Decompression: uncompress filename.z compression: Compress filename.tar.z decompression: Tar zxvf filename.tar.z compression:tar  Zcvf filename.tar.z dirname ———————————————. Zip Decompression: unzip filename.zip compression: Zip filename.zip  dirname ———————————————. rar Decompression: Rar x filename.rar compression: Rar a filename.rar&nbsP;dirname ———————————————. LHA Decompression: Lha -e filename.lha compression: Lha -a filename.lha filename ———— ———————————. rpm Unpacking: Rpm2cpio filename.rpm | cpio -div ———————————————. Deb Pack:ar p  filename.deb data.tar.gz | tar zxf -———————————————. tar .tgz .tar.gz . Tar. Z .tar.bz .tar.bz2 .zip .cpio .rpm .deb .slp .arj .rar .ace  .lha .lzh .lzx .lzs .arc .sda .sfx .lnx .zoo .cab .kar  .cpt .pit .sit .sea decompression: sex x filename.* compression:sex a filename.*  FileName


Linux: Compression Decompression command

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.