pax.1 (2011 09)

p
pax(1) pax(1)
characters, pathname longer than 256 characters or link name longer than 100
characters. Archives of this format are reported as "USTAR format archive
extended" in the read and list mode when the
-v (verbose) flag is specified
in the command line.
ustar Extended tar interchange format. This is the default output archive format.
The default blocking value for this format for character special archive files is
10240. Blocking values from 512 to 32,256 in increments of 512 are supported.
Any attempt to append to an archive file in a format different from the existing archive
format causes the
pax command to exit immediately with a nonzero exit status.
-X When traversing the file hierarchy specified by a pathname, the
pax command does not
descend into directories that have a different device ID.
-y Prompts interactively for the disposition of each file. Substitutions specified by
-s flags
are performed before you are prompted for disposition. An EOF marker or an input line
starting with the character
q causes pax to exit. Otherwise, an input line starting with
anything other than y causes the file to be ignored. This flag cannot be used in conjunc-
tion with the -i flag.
Option Interaction and Processing Order
Specifying more than one of the mutually-exclusive options
-H and -L shall not be considered an error
and the last option specified shall determine the behavior of the utility.
The flags that operate on the names of files or archive members (
-c,
-i, -n, -s, -u, and -v) interact as
follows.
When extracting files (
-r flag), archive members are selected, using the modified names, according to the
user-specified pattern arguments as modified by the -c, -n, and
-u flags. Then, any -s and -i flags
modify, in that order, the names of the selected files. The
-v flag writes the names resulting from these
modifications.
When writing files to an archive file (
-w flag), or when copying files, the files are selected according to the
user-specified pathnames as modified by the -n and -u flags. Then, any
-s and -i flags modify, in
that order, the names resulting from these modifications. The
-v flag writes the names resulting from
these modifications.
If both the
-u and -n flags are specified, the pax command does not consider a file selected unless it is
newer than the file to which it is compared.
Listing Member Files of Archived Files
You can specify the
pax command without the -r or -w flags with the
-H or -L, -c, -d, -f, -n, -o,
-s, and -v flags, and with the pattern argument.
If neither the
-r or -w flags are included, pax lists the contents of the specified archive, one file per
line.
If the
-v flag is specified, the listing is output in the ls -l command format. In the verbose listing pax
lists hard link pathnames as follows:
pathname
==linkname
pax lists symbolic link pathnames as follows:
pathname
->linkname
In the case of hard links, pathname is the name of the file that is being extracted, and linkname is the
name of a file that appeared earlier in the archive.
Extracting Archive Files
The -r flag can be specified with the -H or -L, -c, -d, -f, -n, -o, -s, and -v flags, and a pattern
argument.
Writing Archive Files
The
-w flag can be specified with the -H or -L, -b, -d, -f, -i, -o, -s, -t, -u, -v, -x, and -X flags
and with file arguments.
If
-w is specified, but no files are specified, standard input is used. If neither -f or -w are specified,
standard input must be an archive file.
HP-UX 11i Version 3: September 2011 7 Hewlett-Packard Company 7