Common linux commands (2) compression and decompression commands

Source: Internet
Author: User
Gzipgnuzipcompressed file. gz files can only be compressed... gzip GNU zip compressed file. gz file, you can only compress the file gunzip gzip-d decompress the tar compressed package folder .tar.gz-c unzip .tar package file-v show details-f specifies the compressed file name-z package is the same as the compressed demo: tar-zcf newdir.tar.gz newdir tar uncompressed. tar.gz-x uncompressed. tar file demo: tar-xzcf newdir.tar.gz newdir zip compressed file and directory. zipdemo: zip newdir.zip newdir compressed file zip-r test.zip/test compressed directory unzip decompress. zip File demo: unzip new.zip bzip2 compresses large files. bz2 file-k keep file demo to be compressed: bzip2-k newdir bunzip2 uncompressed. bz2 file demo: bunzip2-k newdir.bz2 file judge file type author qqdenghaigui

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.