Compression commands that are reused under Ubuntu

Source: Internet
Author: User
01-.tar format unpacking: [*******]$ tar xvf filename.tar Packaging: [*******]$ tar cvf filename.tar DirName (Note: Tar is packaged, not compressed.) ) 02-.gz format decompression 1:[*******]$ gunzip filename.gz decompression 2:[*******]$ gzip-d filename.gz compression: [*******]$ gzip FileName 03-.tar.gz lattice  Type decompression: [*******]$ tar zxvf FileName.tar.gz compression: [*******]$ tar zcvf FileName.tar.gz DirName 04-.bz2 format decompression 1:[*******]$ bzip2-d FILENAME.BZ2 decompression 2:[*******]$ bunzip2 filename.bz2 compression: [*******]$ bzip2-z FileName 05-.tar.bz2 format decompression: [*******]$ tar JXVF FILENAME.TAR.BZ2 compression: [*******]$ tar jcvf FileName.tar.bz2 DirName 06-.bz format decompression 1:[*******]$ bzip2-d filename.bz decompression 2:[****** *]$ bunzip2 filename.bz 07-.tar.bz format extract: [*******]$ tar jxvf FileName.tar.bz 08-. Z format decompression: [*******]$ uncompress filename.z compression: [*******]$ compress FileName 09-.tar. Z format decompression: [*******]$ tar zxvf filename.tar.z compression: [*******]$ tar zcvf filename.tar.z DirName 10-.tgz format decompression: [*******]$ tar zxvf FILENAME.TGZ 11-.tar.tgz Format decompression: [*******]$ tar zxvf FileName.tar.tgz compression: [*******]$ tar zcvf FileName.tar.tgz FileName 12-. ZipFormat decompression: [*******]$ unzip filename.zip compression: [*******]$ zip filename.zip DirName 13-.lha format decompression: [*******]$ lha-e Filename.lha compression     
: [*******]$ lha-a Filename.lha FileName 14-.rar format decompression: [*******]$ rar a filename.rar compression: [*******]$ rar e Filename.rar
RAR please to: http://www.rarsoft.com/download.htm download.
 After extracting, copy the rar_static to the/usr/bin directory (other directories specified by the $PATH environment variable): [*******]$ CP Rar_static/usr/bin/rar

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.