AT&T UNIX™PC Unix System V Users Manual - tenox

AT&T UNIX™PC Unix System V Users Manual - tenox AT&T UNIX™PC Unix System V Users Manual - tenox

01.01.2013 Views

CPIO ( 1) CPIO ( 1) cpio -oc 0128 > /dev/rfp021 will begin the output at block number 128. t Print a table of contents of the input. No files are created. T Provides a specific buffer size for the cpio operation. The size of the buffer, in kilobytes ( lKB = 1024B ), follows the T. For example, cpio -ict T64 < /devjrfp021 uses a 64KB buffer while it reads the filenames from the cpio set. Note that if no buffer size is specified, 64KB buffers are used. u Copy unconditionally (normally, an older file will not replace a newer file with the same name). v Verbose : causes a list of file names to be printed. When used with the t option, the table of contents looks like the output of an Is -1 command (see ls (1)). x Halt the cpio operation as soon as one filename in the pattern list is restored (otherwise the entire cpio set is read). This option is used only with the -i option. m Whenever possible, link files rather than copying them. Usable only with the -p option. Retain previous file modification time. This option is ineffective on directories that are being copied. r Copy in all files except those in patterns. s Swap bytes. Use only with the -i option. S Swap halfwords. Use only with the -i option. b Swap both bytes and halfwords. Use only with the -i option. 6 Process an old (i.e., UNIX Sixth Edition format) file. Only useful with -i (copy in). EXAMPLES The first example below copies the contents of a directory into an archive; the second duplicates a directory hierarchy: Is I cpio -o > /dev /rfp021 cd olddir find • -depth -print I cpio -pdl newdir The trivial case "find • -depth -print I > /dev /rfp021" can be handled more efficiently by: find . -cpio jdev /rfp021 SEE ALSO ar(1), find(1), cpio(4). cpio -oB BUGS Path names are restricted to 128 characters. If there are too many unique linked files, the program runs out of memory to keep - 2-

CPIO ( 1) CPIO ( 1) track of them and, thereafter, linking information is lost. Only the super-user can copy special files. - 3 -

CPIO ( 1) CPIO ( 1)<br />

cpio -oc 0128 > /dev/rfp021<br />

will begin the output at block number 128.<br />

t Print a table of contents of the input. No files are<br />

created.<br />

T Provides a specific buffer size for the cpio operation. The<br />

size of the buffer, in kilobytes ( lKB = 1024B ), follows<br />

the T. For example,<br />

cpio -ict T64 < /devjrfp021<br />

uses a 64KB buffer while it reads the filenames from the<br />

cpio set. Note that if no buffer size is specified, 64KB<br />

buffers are used.<br />

u Copy unconditionally (normally, an older file will not<br />

replace a newer file with the same name).<br />

v Verbose : causes a list of file names to be printed. When<br />

used with the t option, the table of contents looks like the<br />

output of an Is -1 command (see ls (1)).<br />

x Halt the cpio operation as soon as one filename in the pattern<br />

list is restored (otherwise the entire cpio set is read).<br />

This option is used only with the -i option.<br />

m<br />

Whenever possible, link files rather than copying them.<br />

Usable only with the -p option.<br />

Retain previous file modification time. This option is<br />

ineffective on directories that are being copied.<br />

r Copy in all files except those in patterns.<br />

s Swap bytes. Use only with the -i option.<br />

S Swap halfwords. Use only with the -i option.<br />

b Swap both bytes and halfwords. Use only with the -i<br />

option.<br />

6 Process an old (i.e., UNIX Sixth Edition format) file. Only<br />

useful with -i (copy in).<br />

EXAMPLES<br />

The first example below copies the contents of a directory into an<br />

archive; the second duplicates a directory hierarchy:<br />

Is I cpio -o > /dev /rfp021<br />

cd olddir<br />

find • -depth -print I cpio -pdl newdir<br />

The trivial case "find • -depth -print I<br />

> /dev /rfp021" can be handled more efficiently by:<br />

find . -cpio jdev /rfp021<br />

SEE ALSO<br />

ar(1), find(1), cpio(4).<br />

cpio -oB<br />

BUGS<br />

Path names are restricted to 128 characters. If there are too<br />

many unique linked files, the program runs out of memory to keep<br />

- 2-

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

Saved successfully!

Ooh no, something went wrong!