Go to the previous, next section.

List A Specific File in an Archive

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

FIXME:
To to see if a particular file is in an archive, specify the name of the file in question as a file name argument while specifying the `--list' (`-t') operation. For example, if you wanted to see if the file `folk' were in the archive file `music', you would:

Type:

% tar --list --file=music practice/folk

tar responds:

practice/folk

If the file were not in the archive (for example, the file `practice/rock'), the example above would look like:

% tar --list --file=music practice/rock
tar: practice/rock not found in archive

The `--verbose' (`-v') option does not have any effect on execution of the `--list' (`-t') operation when you have specified file name arguments.

FIXME: this is a bug (?)

To to see if a particular file is in an archive, use the name of the file in question as a file name argument while specifying the `--list' (`-t') operation. For example, to see whether the file `folk' is in the archive file `music', do the following:

Type:

% tar --list --file=music practice/folk

tar responds:

practice/folk

If the file were not stored in the archive (for example, the file `practice/rock'), the example above would look like:

% tar --list --file=music practice/rock
tar: practice/rock not found in archive

If you had used `--verbose' (`-v') mode, the example above would look like:

% tar --list --file=music practice/folk
-rw-rw-rw- myself/user 62 May 23 10:55 1990 practice/folk

Go to the previous, next section.