Decompress the specified file in the TAR package

Source: Internet
Author: User
Decompress the specified file in the TAR package (). Category:
Linux tar decompress the tar package and specify a file. For example, a xxl.tar.gz package (created using tar-zcvf xxl.tar.gz XXL/) is displayed in/home/xxl ), we can use tar-ztvf xxl.tar.gzto prepare what files are included in the package xxl.tar.gz, if there is a file test in the package. the SQL statement is in the XXL/date/directory. Now I need to decompress this file. Other files are not required. I can decompress it using the following command: tar-zxvf xxl.tar.gz. /XXL/date/test. at this time, SQL generates a folder/XXL/date under the current directory, which contains the file test. SQL, so that I do not need to unpack the entire tar package, you can also decompress the specified file to the specified folder tar-zxvf xxl.tar.gz-C/home/xxl1 // XXL/date/test. SQL: This is the file test. SQL will be in/Ho In the ME/xxl1 folder, This method is suitable for use when the package is large and only one or two files are in it. If you have any improper information, please kindly advise!

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.