Linux compression and decompression

Source: Internet
Author: User
1.gzip--Compression and decompression
Usage: gzip [options] ... [File name] ...//file after decompression for. GZ End
Option:-D Decompression
2.bzip2--Compression and decompression
Usage: gzip [options] ... [File name] ...//file after decompression for. BZ2 End of
Option:-D Decompression
Note: The gzip and bzip2 tools cannot be packaged to compress the directory.
3.tar--Archiving and compression
Common options for the tar tool:
-C: Create an archive

  • -delete: Deleting files from packaged files
  • R: Chasing files to packaged documents
    -X: Release Archive
    -F: Specify the Archive file name
    -Z,-J,-j (uppercase): Call the. GZ,. bz2,. xz Format tools for processing
    --remove-files: Deleting source files after packaging
    -T: Displays a list of files in the archive
    -P (uppercase): Keep the absolute path to the file within the archive
    -C (UPPERCASE): Specifies where the TAR package is disposed
    Backup and Recovery:
    Use tar-c ... Command---Make archive compression packages:
    -TAR-ZCF backup files. tar.gz The document that was backed up:
    -TAR-JCF backup files. tar.bz2 The document that was backed up:
    -TAR-JCF backup files. Tar.xz The document that was backed up:
    To view archive Compressed packages:
    -TAR-TF Backup Files
    Release Archive Compressed Package:
    • TAR-XF backup file [-C target directory]

Linux compression and decompression

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.