From 25eaa9a78c68754311acf20099a7b51c5d51398e Mon Sep 17 00:00:00 2001 From: Morten Siebuhr Date: Tue, 24 Sep 2024 15:23:51 +0200 Subject: [PATCH] Update tar.md to show file-listing (#2162) --- tar.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tar.md b/tar.md index 8b85f9b492..f183af23cf 100644 --- a/tar.md +++ b/tar.md @@ -33,6 +33,12 @@ tar -xzf archive.tar.gz -C /target/directory tar -zu archive.tar.gz -C /target/file ``` +```shell +# List files in archive +# Add -v for additional details +tar -tzf archive.tar.gz +``` + ### Common options | Option | Description |