Compression and decompression methods for common compression formats under Linux

  

.tar unpacking: tar xvf FileName.tar package: tar cvf FileName.tar DirName (Note: tar is packaged, not compressed!)------- --------------------------------------.gz Unzip 1: gunzip FileName.gz decompression 2: Gzip -d FileName.gz compression: gzip FileName.tar.gz extract: tar zxvf FileName.tar.gz compression: tar zcvf FileName.tar.gz DirName----------------- ----------------------------.bz2 Unzip 1: bzip2 -d FileName.bz2 extract 2: bunzip2 FileName.bz2 compression: bzip2 - z FileName.tar.bz2 extract: tar jxvf FileName.tar.bz2 compression: tar jcvf FileName.tar.bz2 DirName------------------------- --------------------.bz Unzip 1: bzip2 -d FileName.bz extract 2: bunzip2 FileName.bz compression: unknown.tar.bz decompression: tar jxvf FileName .tar.bz compression: Unknown ------------------------------------------- --.Z decompression: uncompress FileName.Z compression: compress FileName.tar.Z decompression: tar Zxvf FileName.tar.Z compression: tar Zcvf FileName.tar.Z DirName------------- ----------------------------- ---.tgz decompression: tar zxvf FileName.tgz compression: unknown.tar.tgz decompression: tar zxvf FileName.tar.tgz compression: tar zcvf FileName.tar.tgz FileName------------ ---------------------------------.zip Unzip: unzip FileName.zip Compression: zip FileName.zip DirName-- -------------------------------------------.rarUnzip: rar a FileName .rarCompression: r ar e FileName.rar

rarPlease go to: http://www.rarsoft.com/download.htm Download! After decompressing, please copy rar_static to the /usr/bin directory (other directories specified by the $PATH environment variable): [root@www2 tmp]# cp rar_static /usr/bin/rar--------- ------------------------------------.lha decompression: lha -e FileName.lha compression: lha - a FileName.lha FileName

lha Please go to: http://www.infor.kanazawa-it.ac.jp/.../lhaunix/Download! > After decompressing, please copy lha to the /usr/bin directory (other directories specified by the $PATH environment variable): [root@www2 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 .sfx .lnx .zoo .cab .kar .cpt .pit .sit .sea decompression: sEx x FileName.* Compression: sEx a FileName.* FileName

sEx is just calling the relevant program, there is no compression or decompression function, please note! sEx please go to: http://sourceforge.net/projects/sexdownload! After unzipping, copy sEx to the /usr/bin directory (other directories specified by the $PATH environment variable): [root@www2 tmp]# cp sEx /usr/bin/

Copyright © Windows knowledge All Rights Reserved