Linux

xz

SafeHigh-ratio xz compression

xz -k <file> / unxz <file.xz>

Higher compression than gzip (slower). -T0 uses all cores. Common for long-term logs and images.

Examples

  • xz -T0 -k huge.logParallel compression

Syntax

xz [-d] [-k] [-T0] <file>

Before you run it

Replaces the original by default.

Related commands

  • gzipCompress with gzip
  • tarArchive (tar)

The same reference, with no signal at all

Every command on this site, held on your device. The app adds 632 more: 1,510 commands and 120 fix flows, searchable with no connection. Free to install, no ads (some content is a one-time purchase).

Get it free on the App Store