Session and utilities

The unxz command

Decompresses .xz files.

Syntax

unxz [-k] archivo.xz

Most useful options

-kKeeps the .xz

Copy-ready examples

$ printf 'texto\n' > f.txt && xz -k f.txt && unxz -k f.txt.xz && lsDecompress .xz

You can try them in the browser terminal: it does not touch your computer.

Typical mistakes

  • It is the same as xz -d.

Related commands

FAQ

Is it fast?

xz decompression is fairly fast even though compression is slow.

Learn to actually use it

The basic Linux course takes you from zero to console fluency with 24 self-grading lessons.

Start the free course