Linux basic commands [file compression decompression]

Source: Internet
Author: User

Commonly used compression formats. zip. gz. bz2

Commonly used compression formats. tar.gz. tar.bz2

Zip compressed file name source file #压缩文件

Zip-r compressed file name source directory #压缩目录

Unzip compressed Files #解压缩

Gzip source files #压缩为. gz compressed file, the source file disappears

Gzip-r directory #压缩目录下的所有子文件, but cannot compress directory

gzip-d Compressed Files #解压缩

Gunzip Compressed Files #解压缩

bzip2 source File #压缩文件

Bzip2-k source File #压缩文件并保留源文件

bzip2-d compressed File #解压缩-K reserved Compressed file

BUNZIP2 compressed File #解压缩-K reserved Compressed file

. tar.gz compression format

In fact, the. tar.gz format is packaged in. tar format and then compressed into. gz format

TAR-ZCVF compressed package name. tar.gz Source File

Options

-Z: Compressed to. tar.gz format

TAR-ZXVF compressed package name. tar.gz

Options

-X: Unzip. tar.gz format

. TAR.BZ2 compression format

TAR-JCVF compressed package name. tar.bz2 Source File

Options

-J: Compressed to. tar.bz2 format

TAR-JXVF compressed package name. tar.bz2

Linux basic commands [file compression 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.