Extract the tgz file to the specified directory

Source: Internet
Author: User

Extract the tgz file to the specified directory tar is commonly used on Linux packaging, compression, compression tools, he has a lot of parameters, folding only to enumerate the commonly used compression and decompression parameter parameters:-c:create to establish the parameters of compressed archives;-X: Extract the parameters of the compressed archive;-Z: Need to use gzip compression;-V: The file is displayed during compression;-F: The top document name, immediately after F to answer the file name, can not add parameter example: First, the entire/home/www/images directory of files are packaged as/home/www/images.tar tar-c vf/home/www/images.tar/home/www/images← only packaged, uncompressed tar-zcvf/home/www/images.tar.gz/home/www/images← packaged, compressed after parameter F in gzip The compressed file name of the face is taken by oneself, used tar to do, if add z parameter, then tar.gz or tgz to represent gzip compressed tar file File 1 Extract tgz file to the specified directory tar zxvf test.tgz-c specified directory such as/sour Ce/kernel.tgz extract to/source/linux-2.6.29 directory tar zxvf/source/kernel.tgz-c/source/linux-2.6.29 2 compress the specified directory to the specified file such as linux- 2.6.29 directory compression to kernel.tgz tar czvf kernel.tgz linux-2.6.29 reprint: http://www.2cto.com/os/201308/233614.html

Extract the tgz file to the specified directory

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.