xz is a lossless data compression program and file format which incorporates the LZMA/LZMA2 compression algorithms. One can think of xz as a stripped-down version of the 7-Zip program. xz has its own file format rather than the .7z format used by 7-Zip (which lacks support for Unix-like file system metadata).