3 \" AT&T Bell Laboratories
5 \" @(#)pax.1 (ulysses!gsf) 08/08/88
9 pax \- portable archive interchange
63 reads and writes archive files in the
68 There are four operation modes controlled by combinations of the
75 writes the files and directories named by the
77 arguments to the standard output together with
78 pathname and status information.
81 argument refers to the files and (recursively) subdirectories
85 arguments are given then the standard input is read to get
86 a list of pathnames to copy, one pathname per line.
87 In this case only those pathnames appearing on the standard input are copied.
90 reads files from the standard input that is assumed
91 to be the result of a previous
94 Only files with names that match any of the
96 arguments are selected.
99 is given in the name-generating notation of
103 character is also matched.
108 which selects all files.
109 The selected files are conditionally created and copied relative
110 to the current directory tree, subject to the options described below.
111 By default the owner and group of selected files will be that of the
112 current user, and the permissions and modify times will be the same
113 as those in the archive.
116 option is omitted then a table of contents of the selected files is
117 listed on the standard error.
120 reads the files and directories named in the
122 arguments and copies them to the destination
126 argument refers to the files and (recursively) subdirectories
130 arguments are given then the standard input is read to get
131 a list of pathnames to copy, one pathname per line.
132 In this case only those pathnames appearing on the standard input are copied.
134 must exist before the copy.
136 The standard archive formats are automatically detected on input.
137 The default output archive format is implementation defined,
138 but may be overridden by the
140 option described below.
142 archives may be concatenated to combine multiple volumes on a single
144 This is accomplished by forcing any pad data to be null bytes.
146 These options support basic archive operations.
163 is automatically determined on input and is ignored for
169 for block and character special archive files and
179 is the pathname of the input or output archive, overriding the default
182 or standard output for
186 File modification times are not retained.
189 Restore file ownership as specified in the archive.
190 The current user must have appropriate privileges.
192 \fBs\fP /\fIold\fP/\fInew\fP/[\fIgp\fP]
193 File names are mapped according
196 style substitution expression.
197 Any non-null character may be used as a delimiter
202 expressions may be specified; the expressions are applied from left to right,
203 terminating with the first successful substitution.
204 The optional trailing
206 causes successful mappings to be listed on the standard error.
207 File names that substitute to the null string are ignored on
208 both input and output.
211 List file names as they are encountered.
212 Produces a verbose table of contents listing when both
219 Specifies the output archive
221 The input format, which must be one of the following,
222 is automatically determined.
238 The proposed POSIX tar format.
241 .SS "Compatibility Options"
242 These options provide functional compatibility with the old
251 append files to the end of the archive.
254 Complement the match sense of the
259 Intermediate directories not explicitly listed in the archive
266 A file is skipped if a null line is entered and
275 files are linked rather than copied when possible.
278 Preserve the access times of input files after they have been copied.
282 is an implementation defined identifier that names the
283 the input or output archive device, overriding the default
286 or standard output for
290 Copy each file only if it is newer than a pre-existing file with the same name.
295 Interactively prompt for the disposition of each file.
297 or an input line starting with
302 Otherwise an input line starting with anything other than
304 causes the file to be ignored.
306 The number of files, blocks, and optionally the number of volumes and
307 media parts are listed on the standard error.
310 the input archive formats are also listed on the standard error.
313 .B "pax \-w \-t 1m ."
314 Copies the contents of the current directory to tape drive 1, medium density.
321 .BI "pax \-rw ." " newdir"
325 directory hierarchy to
328 ar(1), cpio(1), find(1), sh(1), tar(1), cpio(5), tar(5)
330 Special privileges may be required to copy special files.
332 Each archive format has a hard upper limit on member pathname sizes.
334 Device, user-id and group-id numbers larger than 65535 cause additional
335 header records to be output.
336 These records are ignored by old versions of