Linux under unzip command

Source: Internet
Author: User
Tags rar

1. Tar format


Unpacking: [*******]$ tar xvf Filename.tar
Package [---] : [*******]$ tar cvf filename.tar DirName (Note: Tar is packaged, not compressed!) )

2. gz format


Decompression 1: [*******]$ gunzip filename.gz
Decompression 2: [*******]$ gzip-d filename.gz
Compression: [*******]$ gzip FileName

3. tar.gz format


Decompression: [*******]$ tar zxvf FileName.tar.gz
Compression: [*******]$ tar zcvf FileName.tar.gz DirName

4. bz2 format


Decompression 1: [*******]$ bzip2-d filename.bz2
Decompression 2: [*******]$ bunzip2 filename.bz2
Compression: [*******]$ bzip2-z FileName

5. tar.bz2 format


Decompression: [*******]$ tar jxvf FileName.tar.bz2
Compression: [*******]$ tar jcvf FileName.tar.bz2 DirName

6. BZ format


Decompression 1: [*******]$ bzip2-d filename.bz
Decompression 2: [*******]$ bunzip2 filename.bz

7. tar.bz format


Decompression: [*******]$ tar jxvf FileName.tar.bz

8. z Format


Decompression: [*******]$ uncompress filename.z
Compression: [*******]$ Compress FileName

9. Tar. Z Format


Decompression: [*******]$ tar zxvf filename.tar.z
Compression: [*******]$ tar zcvf filename.tar.z DirName

Ten. tgz format


Decompression: [*******]$ tar zxvf filename.tgz

One. tar.tgz format


Decompression: [*******]$ tar zxvf FileName.tar.tgz
Compression: [*******]$ tar zcvf FileName.tar.tgz FileName

. zip format


Decompression: [*******]$ Unzip Filename.zip
Compression: [*******]$ zip filename.zip DirName

LHA format


Decompression: [*******]$ lha-e Filename.lha
Compression: [*******]$ lha-a Filename.lha FileName
RAR format

Extract: [*******]$ RAR a Filename.rar


Compression: [*******]$ rar e Filename.rar
RAR please to: http://www.rarsoft.com/download.htm download!
After extracting, copy the rar_static to the/usr/bin directory (other $path environment variables
The specified directory is also OK): [*******]$ CP Rar_static/usr/bin/rar

Linux under unzip command

Related Article

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.