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
——————————————————————————————————-