HowTo/UncompressFilesInLinux

UNCOMPRESS
tar xvf FileName.tar

COMPRESS
tar cvf FileName.tar DirName

UNCOMPRESS
gunzip FileName.gz

OR

gzip -d FileName.gz

COMPRESS
gzip FileName

UNCOMPRESS
tar zxvf FileName.tar.gz

COMPRESS
tar zcvf FileName.tar.gz DirName

UNCOMPRESS
bzip2 -d FileName.bz2

OR

bunzip2 FileName.bz2

COMPRESS
bzip2 -z FileName

UNCOMPRESS
tar jxvf FileName.tar.bz2

COMPRESS
tar jcvf FileName.tar.bz2 DirName

UNCOMPRESS
bzip2 -d FileName.bz

OR

bunzip2 FileName.bz

COMPRESS
unknown

UNCOMPRESS
tar jxvf FileName.tar.bz

COMPRESS
unknown

UNCOMPRESS
uncompress FileName.Z

COMPRESS
compress FileName

UNCOMPRESS
tar Zxvf FileName.tar.Z

COMPRESS
tar Zcvf FileName.tar.Z DirName

UNCOMPRESS
tar zxvf FileName.tgz

COMPRESS
unknown

UNCOMPRESS
tar zxvf FileName.tar.tgz

COMPRESS
tar zcvf FileName.tar.tgz FileName

UNCOMPRESS
unzip FileName.zip

COMPRESS
zip FileName.zip DirName

INSTALL
RAR : http://www.rarsoft.com/download.htm

[root@www2 tmp]# cp rar_static /usr/bin/rar

UNCOMPRESS
rar a FileName.rar

COMPRESS
rar e FileName.rar

INSTALL
lha : http://www.infor.kanazawa-it.ac.jp/~ishii/lhaunix/

[root@www2 tmp]# cp lha /usr/bin/

UNCOMPRESS
lha -e FileName.lha

COMPRESS
lha -a FileName.lha FileName

UNCOMPRESS
rpm2cpio FileName.rpm | cpio -div

UNCOMPRESS
dpkg -x FileName.deb

from: http://www.linuxgazette.com/node/9542