16.12.2012 Views

z/OS V1R9.0 UNIX System Services Command ... - Christian Grothoff

z/OS V1R9.0 UNIX System Services Command ... - Christian Grothoff

z/OS V1R9.0 UNIX System Services Command ... - Christian Grothoff

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

–c Selects all those files that do not match any of the patterns given on the<br />

command line; this is the opposite of the usual behavior. If a pattern is not<br />

given, then no files will match.<br />

–D Files will not be created sparse in the target directory tree. Sparse files are<br />

those which do not use real disk storage for pages of file data that contain<br />

only zeros. This saves on disk space. When those files are opened and<br />

read, the file system returns zeros for those portions of the files that do not<br />

have real disk storage. The default for pax is to copy all files as sparse,<br />

whether or not the original file was sparse, if sparse files are supported on<br />

the target file system.<br />

Restriction: The –D option is only for pax copy mode.<br />

–d Does not traverse directories. A pattern matching a directory extracts only<br />

the directory itself. When creating an archive, a directory name stores only<br />

the directory itself.<br />

–E Same as verbose (–v) output, but additionally displays extended attributes.<br />

See “Output” on page 490 for more information. –o E is equivalent to pax<br />

–E.<br />

–f archive<br />

Lets you specify the name of the archive file instead of using the standard<br />

input for list mode, read mode (–r operations), and the standard output for<br />

write mode (–w). The archive file you specify may be an MVS data set. For<br />

more information, see Appendix K, “Specifying MVS data set names in the<br />

shell environment,” on page 935.<br />

Tip: Avoid writing to an archive which is in the directory tree or the set of<br />

files being archived. Doing so causes pax to write the archive to itself and<br />

results in unpredictable results during the write or later during a read.<br />

-H Follows symbolic links specified on the command line only. When you<br />

specify this option pax copies the file pointed to by a symbolic link to an<br />

archive. The exception is if a symbolic link on the command line points to<br />

another symbolic link. A chain of symbolic links shall be followed to the end.<br />

Symbolic links encountered during tree traversal are not followed - the<br />

symbolic link itself is archived. The default behavior shall be to archive the<br />

symbolic link itself.<br />

Rule: Specifying more than one of the mutually exclusive options -H and -L<br />

shall not be considered an error and the last option specified shall<br />

determine the behavior of the utility.<br />

–i Lets you rename files as pax works. With extractions, pax displays the<br />

name of the component it is about to extract and gives you the chance to<br />

specify a name for the extracted file. With write operations, pax displays the<br />

name of the file or directory it is about to record in the archive, and lets you<br />

specify a different name to be assigned to the component. If you enter . as<br />

the name, pax processes the file or directory with no change to the name.<br />

If you just press , pax skips the file (doesn’t extract or archive it).<br />

pax ends if you enter end–of-file.<br />

If you also specify –s, pax makes the given substitution before displaying<br />

the name of the component.<br />

–k Prevents the overwriting of existing files.<br />

–L Follows symbolic links. When you specify this option, pax copies the file to<br />

which a symbolic link points to the archive. Normally, only the symbolic link<br />

is copied.<br />

pax<br />

Chapter 2. Shell command descriptions 477

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!