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

pax(1) OSS Shell and Utilities Reference Manual
NAME
pax - Extracts (reads), writes, and lists archive les, and copies les and directory hierarchies
SYNOPSIS
List Members of Archived Files
pax [-cdnv][-f archive]
[-s replstr] [-W options][pattern ...] [pattern ...]
Read (Extract) Archived Files
pax -r [-cdiknuv ][-f archive ][-p string ] ...
[ -s replstr ] ... [-W options ][pattern ... ]
Write a File Archive
pax -w [-adituvX ][-b blocksize ][-f archive ][-L ]
[ -s replstr ] ... [ -x format ][-W options ][pattern ... ] [ le ... ] [ le ... ]
Copy Files
pax -r -w [-diklntuvX ][-p string ] ...
[ -s replstr ] ... [ -W options ][le ... ] directory
FLAGS
-a Appends les to the end of the archive. The -a ag is used only when writing disk
les. It is not supported for tape archives.
-b blocksize
Species a positive decimal integer of bytes to be the block size for output. The block
size cannot exceed 32256 bytes for archives on disk or 28672 bytes for archives on
tape. Block size is automatically determined on input.
blocksize is specied as a series of digits (0-9) followed by the optional letter b or k.If
b is specied, the block-size value is multiplied by 512. If k is specied, the block-size
value is multiplied by 1024. For example, if 10b is specied as the value for blocksize,
it is translated into a block-size value of 5120 bytes (10 * 512).
The default block size for the cpio archive format is 10b (5120 bytes). The block size
of the last group of blocks is always set to the maximum size.
The default block size for the ustar archive format is 10k (10240 bytes). The blocksize
argument is specied as a multiple of 512 bytes.
-c Selects all le or archive members that do not match the pattern or le operands.
-d Species that directories being copied or archived, and archived directories being
extracted, match only the directory or archive that is explicitly named. Information for
intermediate subdirectories in an archive is not stored, and les are not extracted unless
the required directories already exist.
-f archive
Species the pathname of the input or output archive. The value specied for archive
overrides the default standard input le when in list or read mode and overrides the
default standard output le when in write mode.
Guardian tape-device names can be specied with the /G naming convention
(/G/tape). pax does not support labeled tapes, so only unlabeled tapes should be used
for archives. Refer to the NOTES subsection of this reference page for considerations
when using unlabeled tapes.
If the -a option is also specied, and the archive le is written to a disk volume, les
are appended to the end of the archive.
712 Hewlett-Packard Company 527188-003