Linux Unzip command

Source: Internet
Author: User
Tags rar

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

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

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

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

05-.TAR.BZ2 format
Decompression: [*******]$ tar jxvf FileName.tar.bz2
Compression: [*******]$ tar jcvf FileName.tar.bz2 DirName

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

07-.TAR.BZ format
Decompression: [*******]$ tar jxvf FileName.tar.bz

08-. Z Format
Decompression: [*******]$ uncompress filename.z
Compression: [*******]$ compress FileName

09-.tar. Z Format
Decompression: [*******]$ tar zxvf filename.tar.z
Compression: [*******]$ tar zcvf filename.tar.z DirName

10-.TGZ format
Decompression: [*******]$ tar zxvf filename.tgz

11-.TAR.TGZ format
Decompression: [*******]$ tar zxvf FileName.tar.tgz
Compression: [*******]$ tar zcvf FileName.tar.tgz FileName

12-.zip format
Decompression: [*******]$ unzip Filename.zip
Compression: [*******]$ zip Filename.zip DirName

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

14-.rar format
Decompression: [*******]$ 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

From: http://hi.baidu.com/ucdcmqj/blog/item/c48fab59b2c1322c2934f0fd.html

Linux Unzip 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.