System Grab Bag

View all TLDR pages from common (or from all pages)

xz

Compress or decompress .xz and .lzma files. More information: https://manned.org/xz.
  • Compress a file using xz:
    xz {{path/to/file}}
  • Decompress an xz file:
    xz --decompress {{path/to/file.xz}}
  • Compress a file using lzma:
    xz --format={{lzma}} {{path/to/file}}
  • Decompress an lzma file:
    xz --decompress --format={{lzma}} {{path/to/file.lzma}}
  • Decompress a file and write to stdout (implies --keep):
    xz --decompress --stdout {{path/to/file.xz}}
  • Compress a file, but don't delete the original:
    xz --keep {{path/to/file}}
  • Compress a file using the fastest compression:
    xz -0 {{path/to/file}}
  • Compress a file using the best compression:
    xz -9 {{path/to/file}}

License and Disclaimer

The content on this page is copyright © 2014—present the tldr-pages team and contributors.
This page is used with permission under Creative Commons Attribution 4.0 International License.

While we do attempt to make sure content is accurate, there isn't a warranty of any kind.