Compression and decompression methods of common compression formats under Linux

Source: Internet
Author: User

Linuxcompression and decompression methods of common compression formats?
Date:2005-01-20??Source:linuxbyte??LinuxEnthusiasts?
. Tar?
Unpacking: tar xvf filename.tar?
Packaging: tar cvf filename.tar DirName?
(Note:TarIt's packing, not compression! )?
---------------------------------------------?
. gz?
Unzip1: gunzip filename.gz?
Unzip2: gzip-d filename.gz?
Compression: gzip FileName?
. tar.gz?
Unzip: tar zxvf FileName.tar.gz?
Compression: tar zcvf FileName.tar.gz DirName?
---------------------------------------------?
. bz2?
Unzip1: bzip2-d filename.bz2?
Unzip2: bunzip2 filename.bz2?
Compression: bzip2-z FileName?
. tar.bz2?
Unzip:Tar jxvf FileName.tar.bz2?
Compression: tar jcvf FileName.tar.bz2 DirName?
---------------------------------------------?
. BZ?
Unzip1: bzip2-d filename.bz?
Unzip2: bunzip2 filename.bz?
Compression: Unknown?
. tar.bz?
Unzip: tar jxvf FileName.tar.bz?
Compression: Unknown?
---------------------------------------------?
. Z?
Unzip: uncompress filename.z?
Compression: compress FileName?
. Tar. Z?
Unzip: tar zxvf filename.tar.z?
Compression:Tar zcvf filename.tar.z DirName?
---------------------------------------------?
. tgz?
Unzip: tar zxvf filename.tgz?
Compression: Unknown?
. tar.tgz?
Unzip: tar zxvf FileName.tar.tgz?
Compression: tar zcvf FileName.tar.tgz FileName?
---------------------------------------------?
. zip?
Unzip: unzip filename.zip?
Compression: zip filename.zip DirName?
---------------------------------------------?
. rar?
Unzip:RAR a Filename.rar?
Compression: r ar e filename.rar?


rar please go to:http://www.rarsoft.com/download.htmDownload! ?
after the decompression, pleaserar_staticCopy to/usr/bindirectory (Other by$PATHthe directory specified by the environment variable is also available):?
[email protected] tmp]# CP Rar_static/usr/bin/rar?
---------------------------------------------?
. Lha?
Unzip: lha-e Filename.lha?
Compression:Lha-a Filename.lha FileName?

LHA please go to:http://www.infor.kanazawa-it.ac.jp/.../lhaunix/Download! ?
> after the decompression, pleaseLhaCopy to/usr/bindirectory (Other by$PATHthe directory specified by the environment variable is also available):?
[email protected] 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. lnx. Zoo. cab. kar. cpt. Pit. Sit. Sea?
Unzip: sEx x filename.*?
Compression: sEx a filename.* FileName?

sEx just call the relevant program, itself and no compression, decompression function, please note! ?
sEx please go to:Http://sourceforge.net/projects/sexDownload! ?
after the decompression, pleasesExCopy to/usr/bindirectory (Other by$PATHthe directory specified by the environment variable is also available):?
[email protected] tmp]# cp sex/usr/bin/?

Compression and decompression methods of common compression formats under Linux

Related Article

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.