Forrest logo
tool overview
On this page you find all important commands for the CLI tool xz. If the command you are looking for is missing please ask our AI.

xz

XZ is a command-line tool used for compression and decompression of files in Linux and Unix systems. It is based on the LZMA compression algorithm and creates .xz files.

  1. XZ provides lossless data compression that aims for high compression ratio.
  2. It uses a powerful method that compresses various data types including text, images, audio, and more.
  3. The tool offers efficient memory usage and fast compression and decompression speeds.
  4. XZ supports multi-threading, allowing for parallel compression or decompression of files using multiple CPU cores.
  5. It supports compressing multiple files or entire directories into a single .xz archive.
  6. The compression level can be adjusted, with higher levels providing better compression ratios but at the cost of increased processing time.
  7. XZ supports various options for fine-tuning the compression, such as block sizes, dictionary sizes, and filters.
  8. The compression format used by XZ is open and documented, allowing for compatibility with other software and platforms.
  9. XZ provides integrity checking, ensuring that the compressed file can be safely decompressed without errors.
  10. It is widely used in the Linux ecosystem for compressing distributions, software packages, and large files to save storage space or facilitate faster file transfers.

List of commands for xz:

  • xz:tldr:408b9 xz: Decompress an LZMA file.
    $ xz -d --format=${lzma} ${file-lzma}
    try on your machine
    explain this command
  • xz:tldr:73543 xz: Decompress a xz file.
    $ xz -d ${file-xz}
    try on your machine
    explain this command
  • xz:tldr:85e80 xz: Compress a file using the best compression.
    $ xz -9 ${filename}
    try on your machine
    explain this command
  • xz:tldr:88f34 xz: Compress a file to the LZMA file format.
    $ xz --format=${lzma} ${filename}
    try on your machine
    explain this command
  • xz:tldr:a1a8e xz: Compress a file to the xz file format.
    $ xz ${filename}
    try on your machine
    explain this command
  • xz:tldr:ae2e0 xz: Decompress a file and write to `stdout`.
    $ xz -dc ${file-xz}
    try on your machine
    explain this command
  • xz:tldr:b6c4e xz: Compress a file, but don't delete the original.
    $ xz -k ${filename}
    try on your machine
    explain this command
  • xz:tldr:d9dd7 xz: Compress a file using the fastest compression.
    $ xz -0 ${filename}
    try on your machine
    explain this command
tool overview