This section roughly summarizes the compression and decompression methods for various formats of compressed packages in linux. However, I have not used some of the methods. I hope you can help me with them. I will modify them at any time. thank you! What are the compression formats in LINUX ?. Tar decommission: tarxvfFileName.tar package: tarcvfFileName.tar DirNa summarizes the compression and decompression methods of various formats of compressed packages in linux. However, I have not used some of the methods. I hope you can help me with them. I will modify them at any time. thank you!
What are the compression formats in LINUX?
. 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
Compression: bzip2 FileName
.Tar.bz2
Decompress: tar jxvf FileName.tar.bz2
Compression: tar jcvf FileName.tar.bz2 DirName
Bzip2 a.bz2 file1 file2 file3/etc
Compress the content of file1, file2, file3, and/etcto the.bz2 file.
---------------------------------------------
. 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 e FileName.rar
Compression: rar a FileName.rar
To download lha, go to http://www.infor.kanazawa-it.ac.jp/../lhaunix!
> 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/
References: Linux file compression tool Guide
(In fact, help is the best method. Generally, you can use the "-- help" parameter for each command to get a commonly used method !)
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.