From a9922d7c7b573e729b02b3582612dc9454d5ea5e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= Date: Sat, 14 Sep 2013 15:48:57 +0200 Subject: [PATCH] tar: List content of gz/bz2 archives --- cheatsheets/tar | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/cheatsheets/tar b/cheatsheets/tar index ab082db..ea12125 100644 --- a/cheatsheets/tar +++ b/cheatsheets/tar @@ -10,8 +10,14 @@ tar -xzvf /path/to/foo.tgz # To create a .gz archive: tar -czvf /path/to/foo.tgz /path/to/foo/ +# To list the content of an .gz archive: +tar -ztvf /path/to/foo.tgz + # To extract a .bz2 archive: tar -xjvf /path/to/foo.tgz # To create a .bz2 archive: tar -cjvf /path/to/foo.tgz /path/to/foo/ + +# To list the content of an .bz2 archive: +tar -jtvf /path/to/foo.tgz