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.