LinuxCommandLibrary

unxz

TLDR

Decompress file

$ unxz [file.xz]
copy
Keep original
$ unxz -k [file.xz]
copy
To stdout
$ unxz -c [file.xz]
copy
Force overwrite
$ unxz -f [file.xz]
copy
Decompress multiple
$ unxz [file1.xz] [file2.xz]
copy

SYNOPSIS

unxz [-k] [-c] [-f] [options] files

DESCRIPTION

unxz decompresses XZ files. It extracts .xz.
XZ decompression. High compression ratio.
Equivalent to xz -d. Same tool.
Replaces original. Unless -k used.
LZMA2 algorithm. Modern compression.

PARAMETERS

-k

Keep original.
-c
Write to stdout.
-f
Force overwrite.
-v
Verbose mode.
-q
Quiet mode.

CAVEATS

Slow for very large files. Part of xz-utils. Single-threaded by default.

HISTORY

unxz is part of xz-utils, equivalent to running xz with decompression mode.

SEE ALSO

xz(1), gzip(1), bzip2(1)

Copied to clipboard