Options (4)
-d, --decompressbooleanDecompress an XZ file
Example:
xz {{[-d|--decompress]}} {{path/to/file.xz}}-F, --formatbooleanCompress a file using lzma
Example:
xz {{[-F|--format]}} lzma {{path/to/file}}-c, --stdoutbooleanDecompress a file and write to `stdout` (implies `--keep`)
Example:
xz {{[-d|--decompress]}} {{[-c|--stdout]}} {{path/to/file.xz}}-k, --keepbooleanCompress a file, but don't delete the original
Example:
xz {{[-k|--keep]}} {{path/to/file}}Examples (8)
Compress a file using xz
xz path/to/fileDecompress an XZ file
xz [-d|--decompress] path/to/file.xzDecompress a file and write to `stdout` (implies `--keep`)
xz [-d|--decompress] [-c|--stdout] path/to/file.xzCompress a file, but don't delete the original
xz [-k|--keep] path/to/fileCompress a file using the fastest compression
xz -0 path/to/fileCompress a file using the best compression
xz -9 path/to/filemade by @shridhargupta | data from tldr-pages