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.

Portability<br />

Related Information<br />

cat, cpio, ln, mv, rm<br />

cannot allocate target string<br />

cp has no space to hold the name of the target file. Try to release some<br />

memory to give cp more space.<br />

name is a directory (not copied)<br />

You did not specify –r or –R, but one of the names you asked to copy was<br />

the name of a directory.<br />

target name?<br />

You are attempting to copy a file with the –i option, but there is already a<br />

file with the target name. If you have specified –f, you can write over the<br />

existing file by typing y and pressing . If you do not want to write<br />

over the existing file, type n and press . If you did not specify –f and<br />

the file is read-only, you are not given the opportunity to overwrite it.<br />

source name and target name are identical<br />

The source and the target are actually the same file (for example, because<br />

of links). In this case, cp does nothing.<br />

unreadable directory name<br />

cp cannot read the specified directory—for example, because you do not<br />

have appropriate permission.<br />

P<strong>OS</strong>IX.2, X/Open Portability Guide, <strong>UNIX</strong> systems.<br />

The –f and –m options are extensions of the P<strong>OS</strong>IX standard.<br />

cpio — Copy in/out file archives<br />

Format<br />

Description<br />

Options<br />

cpio –o [ –aBcvyz] [–C blocksize] [–O file] [–V volpat]<br />

cpio –i [–BbcdfmrsStuvqyz] [–C blocksize] [–I file] [–V volpat] [pattern ...]<br />

cpio –p [–aBdlmruv] directory<br />

Note: The cpio utility is fully supported for compatibility with older <strong>UNIX</strong> systems.<br />

However, it is recommended that the pax utility be used instead because it<br />

may provide greater functionality and is considered the standard for portable<br />

<strong>UNIX</strong> applications as defined by P<strong>OS</strong>IX.2 IEEE standard 1003.2-1992.<br />

cpio reads and writes files called cpio archives. A cpio archive is a concatenation<br />

of files and directories preceded by a header giving the filename and other file<br />

system information. With cpio, you can create a new archive, extract contents of an<br />

existing archive, list archive contents, and copy files from one directory to another.<br />

Every call to cpio must specify one and only one of the following selector options:<br />

–i Reads an existing archive (created with the –o option) from the standard<br />

input (stdin). Unless you specify the –t option, cpio extracts all files<br />

matching one or more of the given pattern arguments from the archive.<br />

cp<br />

Chapter 2. Shell command descriptions 165

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

Saved successfully!

Ooh no, something went wrong!