(tar)Listing the Contents of a Stored Directory ter


Prev: List A Specific File in an Archive bis Up: How to List Archives

Listing the Contents of a Stored Directory
------------------------------------------

     *(This message will disappear, once this node revised.)*

   To get information about the contents of an archived directory, use
the directory name as a file name argument in conjunction with `--list'
(`-t').  To find out file attributes, include the `--verbose' (`-v')
option.

   For example, to find out about files in the directory `practice', in
the archive file `music', type:

     % tar --list --file=music practice

   `tar' responds:

     drwxrwxrwx myself/user 0 May 31 21:49 1990 practice/
     -rw-rw-rw- myself/user 42 May 21 13:29 1990 practice/blues
     -rw-rw-rw- myself/user 62 May 23 10:55 1990 practice/folk
     -rw-rw-rw- myself/user 40 May 21 13:30 1990 practice/jazz
     -rw-rw-rw- myself/user 10240 May 31 21:49 1990 practice/records

   When you use a directory name as a file name argument, `tar' acts on
all the files (including sub-directories) in that directory.


automatically generated by info2www version 1.2