Linux Archive Compression command

Source: Internet
Author: User

Archive Compression Command

(1) Gzip/gunzip compression and decompression (zip file ending in gz)

GZIP–[1...9]TRV file

Gunzip file

(2) Zip/unzip

Compress the ZIP package and unzip the compressed file at the end of the. zip, without adding any parameters

Zip option Compress file name

-R recursive compression. All files and subdirectories under the specified directory are all compressed

Unzip option compressed file name

-O overwrites files that already exist and does not require user confirmation

-D directory name unzip the compressed file to the specified directory

(3) Tar file packaging

Tar parameter destination file source directory or file

Main parameters:

-C Create a new document

-X extracting archive files

-F file name: Using an archive file

-Z Unzip with gzip

-V Verbose output mode

Note: If you do not add parameter-Z is packaged, if you add the parameter-Z is the decompression

Example:

Tar zcvf Test.tar test compression

Tar zxvf Test.tar Decompression

Linux Archive Compression command

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.