This section roughly summarizes the compression and decompression methods for various formats of compressed packages in linux. However, I have not used some of the methods. I hope you can help me add them. we will modify them at any time. thank you !. Tar unpack: tarxvfFileName.tar package: tarcvfFileName.tar DirName (note: tar is packed, not
This section roughly summarizes the compression and decompression methods for various formats of compressed packages in linux. However, I have not used some of the methods. I hope you can help me add them. we will modify them at any time. thank you!
. Tar
Unpack: tar xvf FileName.tar
Package: tar cvf FileName.tar DirName
(Note: tar is packed, not compressed !)
---------------------------------------------
. Gz
Decompress 1: gunzip FileName.gz
Decompress 2: gzip-d FileName.gz
Compression: gzip FileName
.Tar.gz and. tgz
Decompress: tar zxvf FileName.tar.gz
Compression: tar zcvf FileName.tar.gz DirName
---------------------------------------------
. Bz2
Decompress 1: bzip2-d FileName.bz2
Decompress 2: bunzip2 FileName.bz2
Compression: bzip2-z FileName
.Tar.bz2
Decompress: tar jxvf FileName.tar.bz2
Compression: tar jcvf FileName.tar.bz2 DirName
---------------------------------------------
. Bz
Extract 1: bzip2-d FileName. bz
Decompress 2: bunzip2 FileName. bz
Compression: unknown
. Tar. bz
Decompress: tar jxvf FileName.tar. bz
Compression: unknown
---------------------------------------------
. Z
Decompress: uncompress FileName. Z
Compression: compress FileName
. Tar. Z
Decompress: tar Zxvf FileName.tar. Z
Compression: tar Zcvf FileName.tar. Z DirName
---------------------------------------------
. Zip
Decompress: unzip FileName.zip
Compression: zip FileName.zip DirName
---------------------------------------------
. Rar
Decompress: rar a FileName.rar
Compression: r ar e FileName.rar
Rar please download to: http://www.rarsoft.com/download.htm!
After decompression, copy rar_static to the/usr/bin directory (other directories specified by the $ PATH environment variable can also be used ):
[Root @ www2 tmp] # cp rar_static/usr/bin/rar
---------------------------------------------
. Lha
Decompress: lha-e FileName. lha
Compression: lha-a FileName. lha FileName
Lha please: http://www.infor.kanazawa-it.ac.jp /~ Ishii/lhaunix/download!
> After decompression, copy lha to the/usr/bin directory (other directories specified by the $ PATH environment variable can also be used ):
[Root @ www2 tmp] # cp lha/usr/bin/
---------------------------------------------
. Rpm
Unpack: rpm2cpio FileName. rpm | cpio-div
---------------------------------------------
. Deb
Unpack: ar p FileName. deb data.tar.gz | tar zxf-
---------------------------------------------
References: Linux file compression tool Guide
(In fact, help is the best method. Generally, you can use the "-- help" parameter for each command to get a commonly used method !)