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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Usage notes<br />

–q Assumes all created files are text. This means that any \r (carriage return)<br />

characters are stripped, and only the \n (newlines) are retained.<br />

Do not use the –q option for converting text to a system-independent<br />

format, because that would require all files to be read twice.<br />

–r Lets you rename files as cpio works. When extracting, cpio 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. If you enter . as the name, cpio<br />

processes the file or directory with no modification to the name. If you just<br />

press Enter, cpio skips the file.<br />

–S For portability reasons, swaps pairs of 16-bit words within longwords (a<br />

32-bit or 64-bit word) only when extracting files. This option does not affect<br />

the headers.<br />

–s For portability reasons, swaps pairs of bytes within each 16-bit word only<br />

when extracting files. –s does not affect the headers.<br />

–t Prevents files extraction, producing instead a table of filenames contained<br />

in the archive. See the description of the –v option.<br />

–u Copies an archive file to a target file even if the target is newer than the<br />

archive. Normally, cpio does not copy the file.<br />

–V volpat<br />

Provides automatic multivolume support. cpio writes output to files, the<br />

names of which are formatted using volpat. The current volume number<br />

replaces any occurrence of # in volpat. When you invoke cpio with this<br />

option, it asks for the first number in the archive set, and waits for you to<br />

type the number and a carriage return before its precedes with the<br />

operation. cpio issues the same sort of message when a write error or read<br />

error occurs on the archive; the reasoning is that this kind of error means<br />

that cpio has reached the end of the volume and should go on to a new<br />

one.<br />

–v Provides more verbose information than usual. cpio prints the names of<br />

files as it extracts them from or adds them to archives. When you specify<br />

both –v and –t, cpio prints a table of files in a format similar to that<br />

produced by the ls –l command.<br />

–y When used with –V, does not ask for a volume number to begin with, but<br />

does ask if it gets a read or write error.<br />

–z Performs Lempel-Ziv compression. Output is always a 16-bit compression.<br />

On input, any compression up to 16-bit is acceptable.<br />

1. Use the pax command if you need to use multibyte patterns when searching for<br />

filenames.<br />

2. The P<strong>OS</strong>IX 1003.1 standard defines formats for cpio archives that limit the<br />

UIDs and GIDs that can be stored to the maximum value of 262143. Values<br />

larger than this will not be properly restored.<br />

cpio<br />

3. The byte and word swapping done by the –b, –S, and –s options is effective<br />

only for the file data written. With or without the –c option, header information is<br />

always written in a machine-invariant format.<br />

Chapter 2. Shell command descriptions 167

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

Saved successfully!

Ooh no, something went wrong!