Open System Services Shell and Utilities Reference Manual (G06.25+, H06.03+)

tar(1) OSS Shell and Utilities Reference Manual
l Tells tar to generate an error message if it cannot resolve all the links to the les
archived. If this ag is not specied, no error messages are generated.
m Tells tar not to restore the modication times. The modication time assigned will be
the time of extraction, which is always the case with symbolic links.
o Is provided for backward compatibility. Specify this
ag if the archive will be restored
on a system with an earlier version of tar.
On output, tar normally places information specifying owner and modes of directories
in the archive le. Earlier versions of tar, when encountering this information, give an
error message of the form:
name/: cannot create
The o ag suppresses the directory information. It also prevents archiving of special
les and FIFOs that earlier versions of tar would not be able to extract properly.
(Although anyone can archive special les, only a user who has appropriate privileges
can extract them from the archive les.)
When o is used for reading, it causes the extracted le to take on the user ID and group
ID (UID and GID) of the user running the program, rather than those of the archive le.
This is the default action for the ordinary user.
v Makes tar display progress messages containing the name of each le it processes pre-
ceded by the ag letter. When the v ag is omitted, tar does not produce progress mes-
sages.
When used with the required_ag value of t, the v (verbose) ag gives more informa-
tion about the archive entries than just their names.
w Causes tar to display the action to be taken followed by the name of the le, and then
to wait for the users conrmation.
If the user responds with a word beginning with y, or the locales equivalent of a y, the
action is performed. If any other response is given, the action is not performed.
All ags must be specied together (with no separating spaces). For all ags that require
operand values, the operands must follow the string of ags and be in the same order as the
corresponding ags. For example, tar -cbf n le . and tar -cfb le n |. both use correct ordering,
while tar -cbf le n . species a lename where a blocking factor is expected.
DESCRIPTION
The tar utility is used to save and restore data from traditional format tar archives.
The actions of the tar command are controlled by a string containing one required ag and one
or more optional ags. Most operands to tar are lenames or directory names specifying which
les to dump or restore. In all cases, appearance of a directory name refers to the les and (recur-
sively) subdirectories of that directory.
Environment Variables
The LC_MESSAGES variable determines the locales equivalent of y or n (for yes/no user
responses).
This command supports the use of the LANG, LC_ALL, LC_COLLATE, LC_CTYPE,
LC_MESSAGES, LC_TIME, NLSPATH, and TZ environment variables.
96 Hewlett-Packard Company 527188-003