Various compression and decompression tools in Linux

Source: Internet
Author: User
Unpack in 01-.tar format: [********] $ tar xvf filename.tar package: [********] $ tar CVF filename.tar dirname (Note: tar is packed, not compressed !) 02-.gz format decompression 1: [********] $ gunzip filename.gz decompression 2: [********] $ gzip-D filename.gz compression: [*******] $ gzip FileName03-.tar.gz format unzip: [*********] $ tar zxvf filename.tar.gz compression: [******] $ tar zcvf filename.tar.gz DirName04-.bz2 format decompression 1: [********] $ Bzip2-D filename.bz2 decompression 2: [*******] $ bunzip2 filename.bz2 compression: [********] $ Bzip2-Z FileName05-.tar.bz2 format decompression: [*******] $ tar jxvf filename.tar.bz2 compression: [********] $ tar jcvf filename.tar. B Z2 dirname06 -. BZ format decompression 1: [********] $ Bzip2-D filename. BZ unzip 2: [*******] $ bunzip2 FileName.bz07-.tar. decompress the file in BZ format: [********] $ tar jxvf filename.tar. bz08 -. decompress the file in Z format: [********] $ uncompress filename. Z compression: [********] $ compress FileName09-.tar. decompress the file in Z format: [********] $ tar zxvf filename.tar. Z compression: [********] $ tar zcvf filename.tar. Z dirname10 -. tgz format decompression: [********] $ tar zxvf FileName.tgz11-.tar. decompress the file in tgz format: [********] $ tar zxvf filename.tar. tgz pressure Shrink: [********] $ tar zcvf filename.tar. tgz FileName12-.zip format decompression: [********] $ unzip filename.zip compression: [********] $ zip filename.zip dirname13 -. decompress the LHA format: [********] $ Lha-e filename. lha compression: [********] $ Lha-a filename. lha FileName14-.rar format decompression: [*******] $ rar a filename.rar compression: [********] $ RAR e filename.rar please go to: http://www.rarsoft.com/download.htm download! After decompression, copy rar_static to the/usr/bin directory (Other Directories specified by the $ PATH environment variable are also supported ): [*******] $ CP rar_static/usr/bin/RAR

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.