Intermediate
Package: xz-utils
xz
Compress a file using the xz (LZMA2) algorithm.
Syntax
xz [options] file
Description
xz generally achieves the smallest file size of the common Linux compressors, at the cost of being the slowest, and is increasingly the default for package archives and kernel source releases.
Examples
xz file.txt
Compress a file to file.txt.xz
unxz file.txt.xz
Decompress a .xz file
tar -cJvf archive.tar.xz folder/
Create an xz-compressed tar archive directly