From 6fe385b344ded8725029e64d4164fe10af5c8840 Mon Sep 17 00:00:00 2001 From: Andrik Albuquerque Date: Sun, 14 Apr 2019 21:24:14 -0300 Subject: [PATCH] xz: add lzma format examples (#2908) --- pages/common/xz.md | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/pages/common/xz.md b/pages/common/xz.md index 7ab564e06..62bb48b6b 100644 --- a/pages/common/xz.md +++ b/pages/common/xz.md @@ -1,15 +1,24 @@ # xz > Compress or decompress .xz and .lzma files. +> Homepage: . -- Compress a file: +- Compress a file to the xz file format: `xz {{file}}` -- Decompress a file: +- Decompress a xz file: `xz -d {{file.xz}}` +- Compress a file to the lzma file format: + +`xz --format=lzma {{file}}` + +- Decompress an lzma file: + +`xz -d --format=lzma {{file.lzma}}` + - Decompress a file and write to stdout: `xz -dc {{file.xz}}`