xz is a lossless data compression program and file format which incorporates the LZMA/LZMA2 compression algorithms.
Since it shares the same compression formats, one can think of xz as similar to the 7-Zip program known mostly on Windows. xz has its own file format rather than the .7z format used by 7-Zip; notably, .7z lacks support for Unix-like file system metadata.
== Design ==
xz compresses/decompresses single files as input, and does not bundle multiple files into a single archive. It is therefore common to compress a file that is itself an archive, such as those created by the tar or cpio...