The most common compression and decompression commands in Linux

Source: Internet
Author: User
In Linux, the most commonly used compression and decompression commands include: there is a folder named 999 with the path:/home/yan/999. I want to compress all the files in the folder named 999. Command: cd/home/yantar-zcvf999Back.tar.gz999 or tar-zcvf999B...
In Linux, the most commonly used compression and decompression commands include: there is a folder named 999 with the path:/home/yan/999. I want to compress all the files in the folder named 999. Command: cd/home/yan tar-zcvf 999Back.tar.gz 999 or tar-zcvf 999Back.tar.gz. /999 www.2cto.com. the 999back.tar.gz name is your own name. it is best to add the suffix in this way. you should know the parameters used when decompressing the file. -Zcvf. remember this command. The following vf is necessary. z corresponds to .gz in the suffix and tells him to use the gz compression method. C indicates compress compression. Decompress the command: tar-zxvf 999Back.tar.gz-C./The parameter is-zxvf. z indicates to decompress the file to be gz compressed, and x indicates to decompress the file. -C indicates where to decompress the package. you can select the path after it. To sum up, compress the command parameter zcvf and decompress the command parameter zxvf. Keep two parameters in mind. compress and decompress them! Author: yanzi1225627
Related Article

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.