>_ linuxcommand.dev
Archiving

xz

File compression with xz/lzma

Ubuntu CentOS Debian SUSE Fedora RHEL Arch Alpine macOS
Verified: 2026-03-04
Syntax
$xz [options] [file]
Optionen
-d
-k
-1
-9
-c
Examples
$xz file.txt
$xz -d file.txt.xz
$xz -k file.txt
$xz -9 file.txt
Typical use cases
?
Standard usage
xz --help
Note Modern compression with LZMA algorithm (highest compression).
Export