Go to the previous, next section.
(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:
tar
, and specify the operation to list the contents of
an archive---`--list' (`-t').
tar
is to look for, as a file name
argument. Because tar
preserves paths, file names must be
specified as they appear in the archive (ie.. as they are relative to
the directory from which the archive was created).
FIXME: xref -P
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:
tar
, and specify the `--list' (`-t') operation.
FIXME: xref absolute-names
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.