xz
xz is a Linux command in the Archives & Compression category, rated intermediate difficulty. Compresses or decompresses files using LZMA algorithm (high compression ratio). The syntax is xz [options] [file]. Key options and parameters: file — file to compress. It returns compressed .xz file. A practical example: xz file.tar # Creates file.tar.xz xz -d file.tar.xz # Decompress xz -k file.tar # Keep original xz -9 file.tar # Maximum compression A close relative is tar, which creates and extracts tar archives. The standard Unix archiving tool. A close relative is gzip, which compresses files using Lempel-Ziv coding. Produces .gz files. A close relative is gunzip, which decompresses .gz files created by gzip. More about this category: Linux archive commands — tar, gzip, zip, unzip, and more. Compress and extract files and archives. Related Archives & Compression commands: tar, gzip, gunzip, zip, unzip, zcat, bunzip2, bzip2.