1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-21 22:02:09 +02:00
tldr/pages/common/xz.md
Lucas Gabriel Schneider a5fe31bc47
multiple pages: format technical tokens (#5119)
Co-authored-by: bl-ue <54780737+bl-ue@users.noreply.github.com>
Co-authored-by: Starbeamrainbowlabs <sbrl@starbeamrainbowlabs.com>
2021-01-31 12:05:18 -05:00

617 B

xz

Compress or decompress .xz and .lzma files. More information: https://tukaani.org/xz/format.html.

  • Compress a file to the xz file format:

xz {{file}}

  • Decompress a xz file:

xz -d {{file.xz}}

  • Compress a file to the lzma file format:

xz --format=lzma {{file}}

  • Decompress an lzma file:

xz -d --format=lzma {{file.lzma}}

  • Decompress a file and write to stdout:

xz -dc {{file.xz}}

  • Compress a file, but don't delete the original:

xz -k {{file}}

  • Compress a file using the fastest compression:

xz -0 {{file}}

  • Compress a file using the best compression:

xz -9 {{file}}