The compression and decompression method of the compressed package of various formats under Linux. But some methods I have not used it, it is not all, I hope everyone will help me to add, I will always modify it, thank you!
Squiring: fish that will swim
From: www.linuxbyte.net
Last updated: 2004-10-20
.tar
Unpack: tar xvf filename.tar
Package: TAR CVF filename.tar Dirname
(Note: TAR is packaged, not compressed!)
---------------------------------------------
.gz
Unzip 1: gunzip filename.gz
Unzip 2: gzip -d filename.gz
Compression: gzip filename
.tar.gz and .tgz
Unzip: TAR ZXVF FileName.Tar.gz
Compression: Tar Zcvf filename.tar.gz Dirname
---------------------------------------------
.bz2
Unzip 1: bzip2 -d filename.bz2
Unzip 2: bunzip2 filename.bz2
Compression: bzip2 -z filename
.tar.bz2
Unzip: tar jxvf filename.tar.bz2
Compression: tar jcvf filename.tar.bz2 dirname
---------------------------------------------
.bz
Unzip 1: bzip2 -d filename.bz
Unzip 2: bunzip2 filename.bz
Compression: unknown
.tar.bz
Unzip: TAR JXVF FileName.tar.bz
Compression: unknown
---------------------------------------------
.Z
Unzip: Uncompress FileName.z
Compression: Compress FileName
.tar.z
Unzip: TAR ZXVF FileName.tar.z
Compression: tar zcvf filename.tar.z dirname
---------------------------------------------
.zip
Unzip: unzip filename.zip
Compression: zip filename.zip dirname
---------------------------------------------
.rar
Unzip: RAR a filename.rar
Compression: r ar e filename.rar
RAR please go: http://www.rarsoft.com/download.htm Download!
After decompression, copy RAR_STATIC to the / usr / bin directory (other directory specified by the $ PATH environment variable):
[root @ www2 TMP] # cp rar_static / usr / bin / rar
---------------------------------------------
.lha .lha
Unzip: LHA -E FileName.lha
Compression: LHA-A FileName.lha FileName
LHA please go to: http://www.infor.kanazawa-it.ac.jp/~ishii/lhaunix/ Download! > Copy LHA to / usr / bin directory after decompression (Other directory specified by the $ PATH environment variable):
[root @ www2 TMP] # CP LHA / USR / BIN /
---------------------------------------------
. rpm
Unpacking: rpm2cpio filename.rpm | cpio -div
---------------------------------------------
.deb
Unpack: Ar p filename.deb data.tar.gz | TAR ZXF -
---------------------------------------------
.tar.z .tar.bz .tar.bz2 .zip .cpio.rpm .deb .slp .arj .rar .ce .lha .lzh .lzx .lzs .arc .sda.sfx .lnx .zoo .cab .kar .cpt .pit .sit .sea
Unzip: SEX X FileName. *
Compression: SEX A FileName. * Filename
Sex just calls the relevant program, itself is not compressed, unzipped, please pay attention!
SEX please:
http://sourceforge.net/projects/sex download!
After decompression, copy the SEX to the / usr / bin directory (Other directory specified by the $ PATH environment variable):
[root @ www2 TMP] # cp sex / usr / bin /
Reference: Linux File Compression Tool Guide
(In fact, it is best to help it is the best way. Generally, each command can use "--help" parameters to get common usage!)