Linuxcompression and decompression methods of common compression formats?
Date:2005-01-20??Source:linuxbyte??LinuxEnthusiasts?
. Tar?
Unpacking: tar xvf filename.tar?
Packaging: tar cvf filename.tar DirName?
(Note:TarIt's packing, not compression! )?
---------------------------------------------?
. gz?
Unzip1: gunzip filename.gz?
Unzip2: gzip-d filename.gz?
Compression: gzip FileName?
. tar.gz?
Unzip: tar zxvf FileName.tar.gz?
Compression: tar zcvf FileName.tar.gz DirName?
---------------------------------------------?
. bz2?
Unzip1: bzip2-d filename.bz2?
Unzip2: bunzip2 filename.bz2?
Compression: bzip2-z FileName?
. tar.bz2?
Unzip:Tar jxvf FileName.tar.bz2?
Compression: tar jcvf FileName.tar.bz2 DirName?
---------------------------------------------?
. BZ?
Unzip1: bzip2-d filename.bz?
Unzip2: 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?
---------------------------------------------?
. tgz?
Unzip: tar zxvf filename.tgz?
Compression: Unknown?
. tar.tgz?
Unzip: tar zxvf FileName.tar.tgz?
Compression: tar zcvf FileName.tar.tgz FileName?
---------------------------------------------?
. 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 to:http://www.rarsoft.com/download.htmDownload! ?
after the decompression, pleaserar_staticCopy to/usr/bindirectory (Other by$PATHthe directory specified by the environment variable is also available):?
[email protected] tmp]# CP Rar_static/usr/bin/rar?
---------------------------------------------?
. Lha?
Unzip: lha-e Filename.lha?
Compression:Lha-a Filename.lha FileName?
LHA please go to:http://www.infor.kanazawa-it.ac.jp/.../lhaunix/Download! ?
> after the decompression, pleaseLhaCopy to/usr/bindirectory (Other by$PATHthe directory specified by the environment variable is also available):?
[email protected] tmp]# CP lha/usr/bin/?
---------------------------------------------?
. rpm?
Unpacking:Rpm2cpio filename.rpm | Cpio-div?
---------------------------------------------?
. Tar. tgz. tar.gz. Tar. Z. tar.bz tar.bz2. zip. cpio. rpm. Deb. SLP. Arj. rar. Ace. Lha. Lzh?
. lzx. Lzs. Arc. SDA. lnx. Zoo. cab. kar. cpt. Pit. Sit. Sea?
Unzip: sEx x filename.*?
Compression: sEx a filename.* FileName?
sEx just call the relevant program, itself and no compression, decompression function, please note! ?
sEx please go to:Http://sourceforge.net/projects/sexDownload! ?
after the decompression, pleasesExCopy to/usr/bindirectory (Other by$PATHthe directory specified by the environment variable is also available):?
[email protected] tmp]# cp sex/usr/bin/?
Compression and decompression methods of common compression formats under Linux