Linux compression decompression (Unzip,tar)

Source: Internet
Author: User


Unzip

Tar

Common Decompression Commands:

TAR-ZXVPF : Unzip

TAR-ZCVPF: Compression

# tar [-j|-z] [CV] [-F established file name ] filename ... <== Packaging and Compression

# tar [-j|-z] [TV] [-F established file name ] <== View file name

# tar [-j|-z] [XV] [-F established file name ] [-C directory ] <== Unzip

Parameters:

- Z : Through gzip the support for compression / Unzip, the file name is best *.tar.gz.

-j : Through bzip2 the support for compression / Unzip, the file name is best *.tar.bz2.

- v : In the compression / During the decompression process, the file name being processed is displayed .

- C ( creat ): Set up a package file to match - v to observe the file names that were packaged during the process ( filename ) .

- T ( List ): View what file names are included in the package archive .

- x ( extract -c ( -c -t -x cannot appear in a series of instruction columns at the same time

- C : This option is decompressed, decompressed in a specific directory .

- f filename : - F to be processed immediately after the file name, it is recommended to write a separate option .

- P (lowercase): Retains the original permissions and attributes of the backed up data, the usual term backup ( - C ) Important Configuration Files .

P (UPPERCASE): retains the absolute path, that is, allows the backup data to contain the root directory exists .

--exclude=file: in the process of compression, do not use the FILE Packing .

Linux compression decompression (Unzip,tar)

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.