Linux decompression: tar, rar, 7z command

Source: Internet
Author: User
Tags bz2

Common parameters and examples of 1,TAR commands:
Required Parameters: (3 parameters cannot coexist)
-C: Creates a compressed file that represents create.
-X: Unzip the file
-T: View the files inside the package!

Auxiliary parameters:
-Z: Compressed/uncompressed with gzip
-J: Compressed/uncompressed with bzip2
-V: Show the compression/decompression progress bar
-F: Use the file name (note: F do not answer the parameters, that is,-ZXFV is wrong, to write-ZXVF)

Instance:
Unzip 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)

2,rar instance of the format:
Since Rarlinux is a paid software, first download rarlinux and then install it.
Installation method: Download Rarlinux's package, the official website is: www.rarsoft.com

TAR-ZXVF rarlinux.tar.gz
CD./rarlinux
Make && make install

Instance:

Unrar e Filesname.rar

3,7z File Decompression Instance
Installation: Redhat, Fedora, CentOS installation command:

Yum Install P7zip

Installation: Debian, Ubuntu installation command:

Apt-get Install P7zip

Instance:

7z x filename.7z

(Turn) Linux decompression: tar, rar, 7z 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.