Linux compression instructions

Source: Internet
Author: User
Tags bz2

1, the Windows system and the Linux system compressed files only the ZIP format is universal

2, Windows system can decompress almost all of the Linux compression format

3. Linux compression instructions

GZIP Instructions

Format:

    File name for gzip compression

Description

The compressed file name is automatically called the original file name. gz

    Gzip can only compress, unzip files, cannot manipulate directories, do not keep source files

Gzip–d or Gunzip Decompression

TAR directive

Format:

Compressed TAR–ZCVF file or directory with compressed name

Unzip the file name of TAR–ZXVF decompression

    Description

Compressed filenames are often called. tar.gz

-C Packaging

-V Show More information

-F Specify File name

-Z Do you have the properties of gzip at the same time? i.e. do I need to compress or decompress with gzip?

-X Unpack the package

The file name is generally used after compression. tar.gz End

  Zip instructions

  Format:

Compress zip compressed file name files or directories

    Unzip the zip file name

Description

Compressed filenames are often called. zip

Zip-format files are common on Windows systems and Linux systems

If the compressed directory is prefixed with the-R parameter

  bzip2---gzip the Upgrade

Format:

Compression TAR–CJF file name . tar.bz2 Files or directories

    Unzip TAR–XJF file name . tar.bz2

Description

Compressed filenames are often called. tar.bz2

-K Keep Original file

    -j : Do you have both bzip2 's properties? i.e. is it necessary to compress with bzip2 ?

Other parameter meanings see tar directive

Linux compression instructions

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.