Open System Services Shell and Utilities Reference Manual (G06.25+, H06.03+)
Table Of Contents
pax(1) OSS Shell and Utilities Reference Manual
NAME
pax - Extracts (reads), writes, and lists archive files, and copies files 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 ... ] [ file ... ] [ file ... ]
Copy Files
pax -r -w [-diklntuvX ][-p string ] ...
[ -s replstr ] ... [ -W options ][file ... ] directory
FLAGS
-a Appends files to the end of the archive. The -a flag is used only when writing disk
files. It is not supported for tape archives.
-b blocksize
Specifies 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 specified as a series of digits (0-9) followed by the optional letter b or k.If
b is specified, the block-size value is multiplied by 512. If k is specified, the block-size
value is multiplied by 1024. For example, if 10b is specified 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 specified as a multiple of 512 bytes.
-c Selects all file or archive members that do not match the pattern or file operands.
-d Specifies 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 files are not extracted unless
the required directories already exist.
-f archive
Specifies the pathname of the input or output archive. The value specified for archive
overrides the default standard input file when in list or read mode and overrides the
default standard output file when in write mode.
Guardian tape-device names can be specified 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 specified, and the archive file is written to a disk volume, files
are appended to the end of the archive.
7−12 Hewlett-Packard Company 527188-003