XZ compression The latest compression rate of the King
XZ This compression may be very many strange, but you can know that XZ is the largest number of Linux default on a compression tool.
Before XZ was used very little, so almost nothing was mentioned.
I was in the download phpmyadmin when I saw such a compression format, phpMyAdmin compression package XZ format is even smaller than the 7z, which aroused my interest.
The latest period of time will often hear the use of XZ voice, like the latest archlinux some things using XZ compression. Only XZ also has a disadvantage is that the compression time is longer than 7z compression time is longer. Compression is only a one-time, so it can be ignored.
XZ compressed file method or command
xz-z files to compress
Suppose you want to keep the compressed file plus the parameter-K, assuming that you want to set the compression rate to increase the number of parameters-0 to 9 to adjust the compression rate. Assuming not set, the default compression level is 6.
XZ decompression File method or command
xz-d files to Unzip
The same uses the-K parameter to retain the extracted files.
How to create or unzip a tar.xz file
People accustomed to tar czvf or tar xzvf may encounter tar.xz and would like to use a single command to extract or compress. In fact, no, there's no sign in the tar. For the XZ format, for example, Z is for gzip,j for bzip2.
Create a TAR.XZ file: Just first tar cvf xxx.tar xxx/Create the Xxx.tar file first, then use Xz-z Xxx.tar to compress Xxx.tar into XXX.TAR.XZ
Unzip Tar.xz file: First xz-d XXX.TAR.XZ will xxx.tar.xz decompression into Xxx.tar then, then use tar xvf xxx.tar to unpack.
How to extract TAR.XZ files