About the file Compression archive operation command in Linux system

Source: Internet
Author: User

Linux File Compression archive operation command: Gzip/ungzip suffix. gz

Xz/unxz suffix. xz

Bzip2/bunzip2 suffix. bz2

Tar for archiving and compressing

-#: #为0-9 Specify compression ratio

Gzip-c name compression results output to standard output

-D Decompression

-V Verbose

Zcat to view compressed files without pressure

-R Recursive compression

Xz-k Keep the original file

Xzcat without pressure to view the original file

Tar Jcf file.tar.xz/dir/to/file archive files and compress packages into XZ form

Tar zcf file.tar.xz/dir/to/file archive files and compress packets into GZ form

Tar jcf file.tar.xz/dir/to/file archive files and compress packages into bz2 form

Tar xf/path/to/file.tar.xz extract the file without specifying the file format when decompressing

Tar tf/path/to/file.tar.xz read the directory of archived files without being pressed

Tar zcf file.tar.xz/dir/to/file-c/path/to/somewhere dump archived compressed files to a path

About the file Compression archive operation command in Linux system

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.