Article Title: practical tips for file format conversion in Linux. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
. Tar
Unpack: tar xvf FileName.tar
Package: tar cvf FileName.tar DirName
(Note: tar is packed, not compressed !)
---------------------------------------------
. Gz
Decompress 1: gunzip FileName.gz
Decompress 2: gzip-d FileName.gz
Compression: gzip FileName
.Tar.gz
Decompress: tar zxvf FileName.tar.gz
Compression: tar zcvf FileName.tar.gz DirName
---------------------------------------------
. Bz2
Decompress 1: bzip2-d FileName.bz2
Decompress 2: bunzip2 FileName.bz2
Compression: bzip2-z FileName
.Tar.bz2
Decompress: tar jxvf FileName.tar.bz2
Compression: tar jcvf FileName.tar.bz2 DirName
---------------------------------------------
. Bz
Extract 1: bzip2-d FileName. bz
Decompress 2: bunzip2 FileName. bz
Compression: Unknown
. Tar. bz
Decompress: tar jxvf FileName.tar. bz
Compression: Unknown
---------------------------------------------
. Z
Decompress: uncompress FileName. Z
Compression: compress FileName
. Tar. Z
Decompress: tar Zxvf FileName.tar. Z
Compression: tar Zcvf FileName.tar. Z DirName
---------------------------------------------
. Tgz
Decompress: tar zxvf FileName. tgz
Compression: Unknown
. Tar. tgz
Decompress: tar zxvf FileName.tar. tgz
Compression: tar zcvf FileName.tar. tgz FileName
---------------------------------------------
. Zip
Decompress: unzip FileName.zip
Compression: zip FileName.zip DirName
---------------------------------------------
. Rar
Decompress: rar a FileName.rar
Compression: r ar e FileName.rar
Rar Please download to: http://www.rarsoft.com/download.htm!
After decompression, copy rar_static to the/usr/bin directory (Other Directories specified by the $ PATH environment variable can also be used ):
[Root @ www2 tmp] # cp rar_static/usr/bin/rar
---------------------------------------------
. Lha
Decompress: lha-e FileName. lha
Compression: lha-a FileName. lha FileName
For lha, visit http://www.infor.kanazawa-it.ac.jp /...... /Lhaunix/download!
> After decompression, copy lha to the/usr/bin directory (Other Directories specified by the $ PATH environment variable can also be used ):
[Root @ www2 tmp] # cp lha/usr/bin/
---------------------------------------------
. Rpm
Unpack: 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
Decompress: sEx x FileName .*
Compression: sEx a FileName. * FileName
SEx only calls related programs and does not support compression or decompression. Please note!
For sEx, go to http://sourceforge.net/projects/sexto download it!
After decompression, copy sEx to the/usr/bin directory (Other Directories specified by the $ PATH environment variable can also be used ):
[Root @ www2 tmp] # cp sEx/usr/bin/