Compression and Archives

xz

Compresses or decompresses xz files.

xz offers high compression and is common for source archives and package-related files.

Syntax
xz [options] file...

Arguments explained

  • Options adjust output or behavior.
  • Arguments name the files, services, hosts, or values the command should work with.

Common examples

Compress with xz
xz -k archive.tar

Creates archive.tar.xz and keeps the original.

Decompress to stdout
xz -dc archive.tar.xz | tar -tf -

Lists tar contents through a decompression stream.

xz Command
FieldDetails
Commandxz
CategoryCompression and Archives
Primary useCompresses or decompresses xz files.
Syntaxxz [options] file...