Instructions for using Tar compression commands in Linux

Source: Internet
Author: User
You can use tar & amp; ndash; help in linux to view the detailed description. Format: tar [option] file-c: create a parameter command for the compressed file;-x: Unlock the parameter command for the compressed file! -T: view the files in the tarfile !... For details, run tar-help in linux. Format: tar [option] file-c: create a parameter command for compressing a file.-x: undo the parameter command for a compressed file! -T: view the files in the tarfile! Note that c/x/t can only exist under the parameter! Cannot exist at the same time! Because it is impossible to simultaneously compress and decompress. -Z: does it have the gzip attribute at the same time? That is, do I need to use gzip for compression? -J: does it have bzip2 attributes at the same time? That is, do I need to use bzip2 for compression? -V: The file is displayed during compression! This is common, but it is not recommended to use it in the background execution process! -F: use the file name. please note that the file name should be followed immediately after f! Do not add parameters! For example, if you use "tar-zcvfP tfile sfile", it is wrong to write it as "tar-zcvPf tfile sfile! -P: use the original attributes of the original file (the attributes will not be changed based on the user)-P: you can use absolute paths to compress! -N: a new date (yyyy/mm/dd) will be packed into the new file! -Exclude FILE: Do not pack the FILE during compression!

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.