Linux file archive compression and decompression

Source: Internet
Author: User
Tags bz2 unzip bz2

Archive Management
    • tar [parametric] Xxx.tar file

–c Generating the archive file, creating a packaged file

-V lists the detailed process of archive files, showing progress

-f Specifies the file name, after F must be a. tar file

-T lists the files contained in the archive

-X Unlock file archive

Cases:

1) Packaging files

2) Unzip the file

Unzip the file to the specified path: TAR–XVF packaged file name –C path

File Compression Decompression
    • gzip [Options] Compressed files

-D Decompression

-R compresses all subdirectories

TAR-ZCVF: Package and Compress

TAR-ZXVF: Decompression

    • bz2

1) Tar jcvf xxx.bz2 file (compressed bz2 file)

2) Tar jxvf xxx.bz2 file (unzip bz2 file)

    • Zip, unzip

1) Zip [-r] Xxx.zip file

2) Unzip–d folder Xxx.zip

Note:

Linux commonly used compression format. bz2. gz. zip

Zip in Windows can be used directly, the other two formats of compressed files may need to install special decompression software

Linux file archive compression and decompression

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.