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 and flow from this site, held on your device and searchable with no connection. Free to install, no ads.

Get it free on the App Store