Open System Services Shell and Utilities Reference Manual (G06.28+, H06.05+)
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 [-aAdituvX ][-b blocksize ][-f archive ][-L ]|
[ -s replstr ] ... [ -x format ][-W options ][pattern ... ] [ file ... ] [ file ... ]
Copy Files
pax -r -w [-AdiklntuvX ][-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.
-A Suppresses warning messages about optional access control list (ACL) entries. |
Because the pax utility does not archive optional ACL entries, a warning message is |
printed for each file that has optional ACL entries. However, if pax is executed |
remotely from a system that does not support OSS ACLs, no warnings are printed.
-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
7−12 Hewlett-Packard Company 527188-007