Linux decompression: tar, rar, 7z command easy to understand the tutorial (including instances) __linux

Source: Internet
Author: User
Tags bz2 rar

Under the compression of Linux is really a little complicated god horse 7z ah, gz2 Ah, bz2 ah, rar ah ... But after reading this, you won't find it complicated. Xi-hee ~ ~

Common parameters and instances of the TAR command:
——————————————————————————————————-
Required Parameters: (3 parameters cannot coexist)
-C: Create a compressed file.
-X: Extracting Files
-T: View the files in the compressed package.
——————————————————————————————————-

Auxiliary parameters:
-Z: With gzip compression/decompression
-J: Compression/decompression with BZIP2
-V: Show progress Bars for compression/decompression
-F: Use filename (note: Do not connect the parameters after F, that is,-ZXFV is wrong, to write-ZXVF)
——————————————————————————————————-
Instance:
Extract a file: TAR-ZXVF abc.tar.bz2
(Decompression abc.tar.bz2)
To create a compressed file: TAR-ZCVF abc.tar.bz2 One.mp3 Two.mp3
(Compress One.mp3 and Two.mp3 into abc.tar.bz2)
——————————————————————————————————-

RAR format of the decompression example:
——————————————————————————————————-
Since Rarlinux is a billing software, we first need to download Rarlinux and then install it.
Installation method: Now download the Rarlinux package, the official website is: www.rarsoft.com
TAR-ZXVF rarlinux.tar.gz
CD./rarlinux
Make && make install
——————————————————————————————————–
Instance decompression: Unrar e Filesname.rar
——————————————————————————————————–

7z file to uncompressed instance
——————————————————————————————————-
Install: Redhat, Fedora, CentOS installation command: Yum install P7zip
Installation: Debian, Ubuntu installation command: Apt-get install P7zip
—————————————————————————————————— –
Extract instance:
7z x filename.7z
——————————————————————————————————-

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.