How to decompress the tar. xz File

Source: Internet
Author: User
The king of the latest compression ratio for xz Compression

There may be many strangers to this compression tool in xz Z, but you know that xz Z is a default compression tool for most Linux systems.

There have been few features in Tibet before, so there is almost nothing to mention.

I saw this compression format when downloading phpMyAdmin. The phpformat OF THE phpMyAdmin compressed package is actually smaller than 7z, which aroused my interest.

In the latest period of time, you will often hear the voice of xz, such as the latest archlinux, which uses xz compression. However, the disadvantage of xz is that the compression time is longer than that of 7z. However, compression is one-time, so you can ignore it.

Methods or commands for compressing files in xz

Files to be compressed by xz-z

If you want to retain the compressed file with the parameter-K, if you want to set the compression ratio, add the parameter-0 to-9 to adjust the compression ratio. If not set, the default compression level is 6.

Methods or commands for extracting files from xz

File to be decompressed by xz-d

Similarly, the-k parameter is used to retain the extracted files.

Create or decompress the tar. xz File

People who are used to tar czvf or tar xzvf may encounter tar. xz and want to decompress Or compress it with a single command. In fact, the tar file does not include parameters in the xz format. For example, z is for gzip and J is for bzip2.

Create a tar. xz file: as long as the xxx.tar file is created first in tar CVF xxx.tar xxx/, then the xxx.tar file is compressed to xxx.tar. xz by using xz-Z xxx.tar.

Decompress the tar. xz file: xz-D xxx.tar. xz decompress xxx.tar. xz to xxx.tar, and then decompress tar xvf xxx.tar to decompress the package.

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.