pax.1 (2011 09)

p
pax(1) pax(1)
rename In read or copy mode, pax
shall act as if the -i option were in effect
for each file with invalid filename or link name values, allowing the user
to provide a replacement name interactively.
write In read or copy mode, pax shall write the file, translating the name
regardless of whether this may overwrite an existing file with a valid
name. This action argument is not supported for files having invalid link
names.
If no
-o invalid= option is specified,
pax shall act as if -o invalid=bypass
was specified. Any overwriting of existing files that may be allowed by the
-o
invalid= actions shall be subject to permission (
-p) and modification time (-u)
restrictions, and shall be suppressed if the
-k option is also specified.
linkdata
(Applicable only to the -x pax format.) In
write mode, pax shall write the con-
tents of a file to the archive even when that file is merely a hard link to a file whose
contents have already been written to the archive.
listopt=format
This keyword specifies the output format of the table of contents produced when the
-v option is specified in list
mode. See List Mode Format Specifications .To
avoid ambiguity, the
listopt= format shall be the only or final keyword = value
pair in a -o option-argument; all characters in the remainder of the option-
argument shall be considered part of the format string. When multiple -o
listopt=format options are specified, the format strings shall be considered a sin-
gle, concatenated string, evaluated in command line order.
times
(Applicable only to the -x pax format.) When used in write or copy mode,
pax shall include atime and mtime extended header records for each file. See
pax Extended Header File Times .
In addition to these keywords, if the
-x pax format is specified, any of the keywords
and values defined in pax Extended Header can be used in -o option-arguments, in
either of two modes:
keyword=value
When used in write or copy mode, these keyword/value pairs shall be included
at the beginning of the archive as typeflag g global extended header records.
When used in read or list mode, these keyword/value pairs shall act as if they
had been at the beginning of the archive as typeflag g global extended header
records.
keyword:=value
When used in write or copy mode, these keyword/value pairs shall be included
as records at the beginning of a typeflag x extended header for each file. (This
shall be equivalent to the equal-sign form except that it creates no typeflag g
global extended header records.) When used in read or list mode, these
keyword/value pairs shall act as if they were included as records at the end of each
extended header; thus, they shall override any global or file-specific extended
header record keywords of the same names. For example, in the command below,
the group name will be forced to a new value for all files read from the archive:
pax -r -o "gname:=mygroup," <archive
The precedence of -o keywords over various fields in the archive is described in pax
Extended Header Keyword Precedence.
-p string Specifies one or more file characteristics to be retained or discarded on extraction. The
string argument consists of the characters a, e, m, o, and p. Multiple characteristics can
be concatenated within the same string and multiple -p flags can be specified. The
specification flags have the following meanings:
a Does not retain file-access times.
e Retains the user ID, group ID, access permission, access time, and modification
time.
HP-UX 11i Version 3: September 2011 5 Hewlett-Packard Company 5