encyclopegia.org

XZ Utils

XZ Utils (previously LZMA Utils) is a set of free-software command-line lossless data compressors, including the programs lzma and xz , for Unix-like operating systems and, from version 5.0 onwards, Microsoft Windows.[src] For compression/decompression the Lempel–Ziv–Markov chain algorithm (LZMA) is used.[src] XZ Utils started as a Unix port of Igor Pavlov's LZMA-SDK that has been adapted to fit seamlessly into Unix environments and their usual structure and behavior.[src]

XZ Utils (previously LZMA Utils) is a set of free-software command-line lossless data compressors, including the programs lzma and xz , for Unix-like operating systems and, from version 5.0 onwards, Microsoft Windows.[src] For compression/decompression the Lempel–Ziv–Markov chain algorithm (LZMA) is used.[src] XZ Utils started as a Unix port of Igor Pavlov's LZMA-SDK that has been adapted to fit seamlessly into Unix environments and their usual structure and behavior.[src] xz my_archive.tar # results in my_archive.tar.xz lzma my_archive.tar # results in my_archive.tar.lzma Decompressing the archive: unxz my_archive.tar.xz # results in my_archive.tar unlzma my_archive.tar.lzma # results in my_archive.tar Version 1.22 or greater of the GNU implementation of tar has transparent support for tarballs compressed with lzma and xz, using the switches or for xz compression, and for LZMA compression.[src] Creating an archive and compressing it: tar -c --xz -f my_archive.tar.xz /some_directory # results in my_archive.tar.xz tar -c --lzma -f my_archive.tar.lzma /some_directory # results in my_archive.tar.lzma Decompressing the archive and extracting its contents: tar -x --xz -f my_archive.tar.xz # results in /some_directory tar -x --lzma -f my_archive.tar.lzma # results in /some_directory Single-letter tar example for archive with compress and decompress with extract using short suffix: tar cJf keep.txz keep # archive then compress the directory ./keep/ into the file ./keep.txz tar xJf keep.txz # decompress then extract the file ./keep.txz creating the directory ./keep/ xz has supported multi-threaded compression (with the flag) since 2014, version 5.2.0; since version 5.4.0, threaded decompression has been implemented.[src] Threaded decompression requires multiple compressed blocks within a stream which are created by the threaded compression interface.[src] The number of threads can be less than defined if the file is not big enough for threading with the given settings or if using more threads would exceed the memory-usage limit.[src] def encode(num): if num >= 2**63: raise ValueError("num must not have more than 63 bits") buf = b"" while num >= 0x80: buf += (0x80 | (num & 0x7f)).to_bytes(length=1) num >>= 7 buf += num.to_bytes(length=1) return buf def decode(buf): if len(buf) == 0: raise ValueError("buf must not be empty") num = 0 for i, byte in enumerate(buf): if i > 8: raise ValueError("num must not have more than 63 bits") num |= (byte & 0x7f)[src]

11 sentences · 11 cited inline · 0 references stored

References

No reference rows published for this article.

Cite this article

MLA

"XZ Utils." encyclopegia.org, 2026, https://encyclopegia.org/wiki/xz-utils. Accessed 02 December 2026.

Chicago

"XZ Utils." encyclopegia.org. Accessed December 2, 2026. https://encyclopegia.org/wiki/xz-utils.

APA

encyclopegia.org. (2026). XZ Utils. Retrieved December 2, 2026, from https://encyclopegia.org/wiki/xz-utils

Accessed December 2, 2026 · CC BY-SA 4.0 · citation page · JSON

CC BY-SA 4.0 · share-alike · https://en.wikipedia.org/w/index.php?oldid=1372062763 · 0.5 · snapshot enwiki-001372062763

Cite · JSON · Search

Related services and records

Services

  • Estate — measured countries, lanes and facts
  • Intel — live corroborated events
  • Legal — statutes, cases and citations
  • Encyclopedia — articles with inline sources
  • Space — launches, satellites and orbits
  • Search — federated search and reports
  • Pass — passport account and SSO
  • Corpora — read-only corpus origins
  • e01 — self-hosted corpora and tools
  • Careers — open roles: frontier engineers and sales partners
  • Index — every corpus, paper and record
  • Estate guide — what a public data estate is
  • Founder — Lois-Kleinner Alpasan
  • Records — DOIs and external deposits
  • Documents — one-pagers, PDFs and QR codes
  • Brand kit — logos and share images
  • Papers — plain-language briefs with citations
  • Browser — search engine, PWA and bookmarklet
  • Anticloud — the operator and its projects

As seen in Business Insider · 336 outlets · evidence DOIs · plain-language papers

Text and metadata only; each target carries its own sources. Missing data is published as no-data, never estimated.