tar: list dir

1 
1 Listing the Contents of a Stored Directory
1 ------------------------------------------
1 
1 To get information about the contents of an archived directory, use the
1 directory name as a file name argument in conjunction with '--list'
1 ('-t').  To find out file attributes, include the '--verbose' ('-v')
1 option.
1 
1    For example, to find out about files in the directory 'practice', in
1 the archive file 'music.tar', type:
1 
1      $ tar --list --verbose --file=music.tar practice
1 
1    'tar' responds:
1 
1      drwxrwxrwx myself/user       0 1990-05-31 21:49 practice/
1      -rw-r--r-- myself/user      42 1990-05-21 13:29 practice/blues
1      -rw-r--r-- myself/user      62 1990-05-23 10:55 practice/folk
1      -rw-r--r-- myself/user      40 1990-05-21 13:30 practice/jazz
1      -rw-r--r-- myself/user   10240 1990-05-31 21:49 practice/collection.tar
1 
1    When you use a directory name as a file name argument, 'tar' acts on
1 all the files (including sub-directories) in that directory.
1