Open System Services Shell and Utilities Reference Manual (G06.27+, H06.04+)

User Commands (p - r) pax(1)
-i Renames les or archives interactively. For each archive member that matches the
pat-
tern operand or le operand, a prompt is written to the terminal associated with the pax
process. The prompt contains the name of the le or archive member that is to be
renamed. Usersresponses are also read from the terminal.
If the users response to the prompt is empty, the le or archive member is skipped. If
the response is a single period (dot), the le or archive member is processed with no
modication to its name. Otherwise, the name of the le or archive member is replaced
with the contents of the response.
The pax utility immediately terminates with a nonzero exit value if an end-of-le is
encountered when reading a response. The pax utility terminates with a nonzero exit
value if an interrupt signal is received, or if the terminal cannot be opened for reading
and writing.
-k Prevents pax from writing over existing les (in read and copy modes).
-l Links les. In copy mode, hard links are made between the source and destination le
hierarchies whenever possible.
-L Archives the le hierarchy rooted in the le referenced by the link, using the name of
the link as the root of the le hierarchy. The default action is to archive the symbolic
link itself.
-n Selects the rst archive member that matches each pattern operand. No more than one
archive member is matched for each pattern (although members of type directory will
still match the le hierarchy rooted at that le).
-p string Species one or more le characteristic options (privileges). The string argument must
be a string specifying the le characteristics to be retained or discarded on extraction,
subject to the permissions of the invoking process. Otherwise, the attribute is deter-
mined as part of the normal le creation action.
The string can consist of any combination of the following options:
a Do not preserve le access times.
e Preserve the user ID, group ID, le mode bits, le access times, and le
modication times when the user executing the pax command has a logon ID with
appropriate privileges.
m Do not preserve le modication times.
o Preserve the user ID and group ID when the user executing the pax command has
a logon ID with appropriate privileges.
p Preserve the le mode bits.
Multiple -p options are allowed in one command. If an option in string duplicates or
conicts with another option in string, the option given last takes precedence.
If neither the -e nor the -o option is specied, or if the user ID and group ID are not
retained, pax does not set the S_ISUID and S_ISGID bits of the access permission. If
the retention of any of these items fails, pax writes a diagnostic message to the stan-
dard error le. Failure to retain any of the items affects the exit value but does not
cause the extracted le to be deleted.
527188-004 Hewlett-Packard Company 713