Linux Commands Reference - Complete Linux Command Guide

Comprehensive Linux command reference with 150+ commands. Search, filter by category, and view detailed usage examples.

Share
Back to commands

unxz

Decompress xz format files

Syntax

unxz [OPTION]... [FILE]...

Common Options

-kKeep compressed file
-cWrite to stdout
-fForce decompress
-tTest integrity
-vVerbose output

Common Examples

unxz file.txt.xz

Decompress xz file

unxz -k file.txt.xz

Decompress keeping .xz

unxz -c file.txt.xz > newfile.txt

Decompress to stdout

unxz -t file.txt.xz

Test file integrity

unxz -f file.txt.xz

Force decompress

Related Commands

Related Tools

More Code & Dev Tools