Linux compression/decompression methods

Source: Internet
Author: User
Unpack in 01-.tar format: [******** unzip tarxvffilename.tar package :[***

Unpack in 01-.tar format: [********] $ tar xvf FileName.tar package: [********] $ tar cvf FileName.tar DirName (note: tar is packed, not compressed !) 02-.gz format decompression 1: [********] $ gunzip FileName.gz decompression 2: [********] $ gzip-d FileName.gz compression: [*******] $ gzip FileName 03-.tar.gz format 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 decompression: [*******] $ tar jxvf FileName.tar.bz2 compression: [********] $ tar jcvf FileName.tar.bz2 DirName 06 -. bz format decompression 1: [********] $ bzip2-d FileName. bz extract 2: [********] $ bunzip2 FileName. bz 07-.tar. decompress the file in bz format: [********] $ tar jxvf FileName.tar. decompress bz 08-.Z: [********] $ uncompress FileName. Z compression: [********] $ compress FileName 09-.tar. decompress the file in Z format: [********] $ tar Zxvf FileName.tar. Z compression: [********] $ tar Zcvf FileName.tar. Z DirName 10 -. decompress the file in tgz format: [********] $ tar zxvf FileName. tgz 11-.tar. decompress the file in tgz format: [********] $ tar zxvf FileName.tar. tgz compression: [********] $ tar zcvf FileName.tar. decompress tgz FileName 12-.zip: [********] $ unzip FileName.zip compression: [********] $ zip FileName.zip DirName 13 -. decompress the lha format: [********] $ lha-e FileName. lha compression: [********] $ lha-a FileName. decompress lha FileName 14-.rar: [********] $ rar a FileName.rar compression: [********] $ rar e FileName.rar
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.