HP-UX Reference (11i v1 00/12) - 1 User Commands N-Z (vol 2)

__________________________________________________________________________________________________________________________________________________________________________________________________
__________________________________________________________________________________________________________________________________________________________________________________________________
STANDARD Printed by: Nora Chuang [nchuang] STANDARD
/build/1111/BRICK/man1/neqn.1
________________________________________________________________
___ ___
p
pax(1) pax(1)
NAME
pax - Extracts, writes, and lists archive files; copies files and directory hierarchies
SYNOPSIS
Listing Member Files of Archived Files
pax [-cdnv][-f archive ][-s replstr ] ... [pattern ...]
Extracting Archive Files
pax -r [-cdiknuvy][-f archive][-p string ] ... [-s replstr ] ... [pattern ...]
Writing Archive Files
pax -w [-adituvXy][-b blocking][-f archive ][-s replstr ] ... [-x format ][file ...]
Copying Files
pax -r -w [-diklntuvXy ][-p string ] ... [-s replstr ] ... [file ...] directory
DESCRIPTION
The pax command extracts and writes member files of archive files; writes lists of the member files of
archives; and copies directory hierarchies. The -r and -w
flags specify the archive operation performed
by the
pax command.
The pattern argument specifies a pattern that matches one or more paths of archive members. A
\
(backslash) character is not recognized in the pattern argument and it prevents the subsequent character
from having any special meaning. If no pattern argument is specified, all members are selected in the
archive.
If a pattern argument is specified, but no archive members are found that match the pattern specified, the
pax command detects the error, exits with a nonzero exit status, and writes a diagnostic message.
The pax command can read both tar and cpio archives. In the case of cpio, this means that
pax
can read ASCII archives (which are created with cpio -c) and binary archives (which are created
without the -c flag). The supported archive formats are automatically detected on input.
pax can also write archives that tar and cpio can read; by default, pax writes archives in the
ustar
extended tar interchange format. pax also writes ASCII cpio archives; use the -x cpio flag to
specify this extended
cpio output format.
Options
-a Appends files to the end of the archive. Certain devices might not support appending.
-b blocking Specifies the block size for output to be the positive decimal integer of bytes specified by the
blocking argument. The block size value cannot exceed 32,256. Blocking is automatically
determined on input.
Do not specify a value for the blocking argument larger than 32768. Default blocking when
creating archives depends on the archive format. (See the -x flag description.)
-c Matches all file or archive members except those specified by the pattern or file arguments.
-d Causes directories being copied or archived, or archived directories being extracted, to
match only the directory or archived directory itself and not the contents of the directory or
archived directory.
-f archive Specifies the path of an archive file to be used instead of standard input (when the
-w flag
is not specified) or the standard output (when the
-w flag is specified but the
-r flag is
not). When specified with the
-a flag, any files written to the archive are appended to the
end of the archive.
-i Renames files or archives interactively. For each archive member that matches the pattern
argument or file that matches a file argument, a prompt is written to the terminal
(
/dev/tty) that contains the name of a file or archive member. A line is then read from
the terminal. If this line is empty, the file or archive member is skipped. If this line consists
of a dot, the file or archive member is processed with no modification to its name. Other-
wise, its name is replaced with the contents of the line. The pax command immediately
exits with a nonzero exit status if an End-of-File is encountered when reading a response or
if it cannot read or write to the terminal.
Section 1662 1 HP-UX Release 11i: December 2000
___
___