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.
waldyrious/alt-syntax
quarcu 2014-09-10 00:45:57 +01:00
parent 72870f8e32
commit 09c2d66923
1 changed files with 4 additions and 0 deletions

View File

@ -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}}`