Linux system commonly used packing / unpacking compressed packets command

Here is probably a common column decompression and packaging commands the details required in Baidu-one comparisons of their differences, such as we are the best practices when downloading software.

 

-------------
. 1, the tar
-------------
the tar
unpack: tar zxvf filename.tar
Packing: the tar czvf filename.tar dirname
---- ---------
2, GZ
-------------
GZ command
extracting 1: gunzip filename.gz
extracting 2: gzip -d filename.gz
compression: the gzip filename
.tar. gz and .tgz
unpack: tar zxvf filename.tar.gz
compression: tar zcvf filename.tar.gz dirname
compress multiple files: tar zcvf filename.tar.gz dirname1 dirname2 dirname3 .....

-------------
. 3, BZ, bz2
-------------
bz2 command
extracting 1: bzip2 -d filename.bz2
extracting 2: bunzip2 filename.bz2
Compression : bzip2 the -z filename
.tar.bz2

Decompression: tar jxvf filename.tar.bz2
compression: the tar jcvf filename.tar.bz2 dirname
BZ command
extracting 1: bzip2 -d filename.bz
extracting 2: Bunzip2 filename.bz
.tar.bz
decompression: tar jxvf filename.tar.bz

-------------
. 4, Z, ZIP
ZIP generally used for windows system
-------------
Z command
decompression: uncompress filename.z
compression: the compress filename
. tar.z
decompression: tar zxvf filename.tar.z
compression: tar zcvf filename.tar.z dirname
ZIP command

unpack: unzip filename.zip
compression: zip filename.zip dirname

 

More content added at any time. . .

Guess you like

Origin www.cnblogs.com/yoyoblogs/p/11237181.html