For details about how to use the linux tar command to compress, view, decompress, and use the tar command

Source: Internet
Author: User

For details about how to use the linux tar command to compress, view, decompress, and use the tar command

Command prototype:

Tar [Option…] [FILE]…

New

-C,--create creates a new compressed file

View

-T,-list: list archived content

Extract

-X,-extract,-get to extract files from the archive

Auxiliary options

-F filename: file name followed by file

-Z use bzip2 for compression and decompression. The suffix is commonly used * .tar.bz2

-J. Commonly Used * .tar.gz

-V view the files being processed during decompression

Example:

// Compress everything in the current directory into 123.tar and replace it with-cvf. You can view the files being processed in tar-cf 123.tar * // check which files in tar-tf 123.tar// decompress 123.tar to the current directory. replace the folder with-xvf to view the files being processed tar-xf 123.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.