From 09c2d6692333416977f68502c6e85776b40a3910 Mon Sep 17 00:00:00 2001 From: quarcu Date: Wed, 10 Sep 2014 00:45:57 +0100 Subject: [PATCH] List content of tar file List content of tar file. I recommend reducing amount of options regarding compressed files since on some OS are allowed only in -c mode. Basically : -j : bzip2 -J : xz -z : bzip2 Additionally the extract should manage as tar -xf file no matter which compression. --- pages/common/tar.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pages/common/tar.md b/pages/common/tar.md index c43cc0115c..b8eb807da3 100644 --- a/pages/common/tar.md +++ b/pages/common/tar.md @@ -26,3 +26,7 @@ - create a compressed archive, using archive suffix to determine the compression programm `tar caf {{target.tar.xz}} {{file1 file2 file3}}` + +- list the contents of a tar file + +`tar -tvf {{source.tar}}`