HowTo/UncompressFilesInLinux

From S23Wiki
Jump to: navigation, search

.tar

UNCOMPRESS

tar xvf FileName.tar

COMPRESS

tar cvf FileName.tar DirName


.gz

UNCOMPRESS

gunzip FileName.gz

OR

gzip -d FileName.gz

COMPRESS

gzip FileName

.tar.gz

UNCOMPRESS

tar zxvf FileName.tar.gz

COMPRESS

tar zcvf FileName.tar.gz DirName

.bz2

UNCOMPRESS

bzip2 -d FileName.bz2

OR

bunzip2 FileName.bz2

COMPRESS

bzip2 -z FileName

.tar.bz2

UNCOMPRESS

tar jxvf FileName.tar.bz2

COMPRESS

tar jcvf FileName.tar.bz2 DirName


.bz

UNCOMPRESS

bzip2 -d FileName.bz

OR

bunzip2 FileName.bz

COMPRESS

unknown

.tar.bz

UNCOMPRESS

tar jxvf FileName.tar.bz

COMPRESS

unknown


.Z

UNCOMPRESS

uncompress FileName.Z

COMPRESS

compress FileName

.tar.Z

UNCOMPRESS

tar Zxvf FileName.tar.Z

COMPRESS

tar Zcvf FileName.tar.Z DirName


.tgz

UNCOMPRESS

tar zxvf FileName.tgz

COMPRESS

unknown

.tar.tgz

UNCOMPRESS

tar zxvf FileName.tar.tgz

COMPRESS

tar zcvf FileName.tar.tgz FileName


.zip

UNCOMPRESS

unzip FileName.zip

COMPRESS

zip FileName.zip DirName


.rar

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


.lha

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


.rpm

UNCOMPRESS

rpm2cpio FileName.rpm | cpio -div


.deb

UNCOMPRESS

dpkg -x FileName.deb 


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


Related

Unpack

Backup_streaming_tar

Softcoder-Board: packen mit tar (und gz)