From 0e1a6e39f23b1d16296eeb16a81a6603ca18b144 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Laurent=20Inderm=C3=BChle?= Date: Tue, 20 Jul 2021 00:13:07 +0200 Subject: [PATCH] gunzip: add command to keep original files (#6247) --- pages/common/gunzip.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/pages/common/gunzip.md b/pages/common/gunzip.md index 43a6b8f65..80b2d0edf 100644 --- a/pages/common/gunzip.md +++ b/pages/common/gunzip.md @@ -9,8 +9,12 @@ - Extract a file to a target destination: -`gunzip -c {{archive.tar.gz}} > {{archive.tar}}` +`gunzip --stdout {{archive.tar.gz}} > {{archive.tar}}` + +- Extract a file and keep the archive file: + +`gunzip --keep {{archive.tar.gz}}` - List the contents of a compressed file: -`gunzip -l {{file.txt.gz}}` +`gunzip --list {{file.txt.gz}}`