MPE/iX Shell and Utilities Reference Manual, Vol 1

cpio(1) MPE/iX Shell and Utilities cpio(1)
–a resets the access time of each file accessed for copying to the archive to what it was
before the copy took place.
–B uses buffers of 5120 bytes for input and output rather than the default 512 byte buf-
fers.
–b causes 16-bit words to be swapped within each longword and bytes to be swapped
within each 16-bit word of each extracted file. This facilitates the transfer of infor-
mation between different
CPU architectures. This is equivalent to specifying both the
–s and –S options.
–C blocksize
sets the buffer size to a specified blocksize, rather than the default 512 byte buffers.
–c reads and writes header information in
ASCII form. Normally, cpio writes the
header information in a compact binary format. This option produces an archive
more amenable to transfer through non-binary streams (such as some data commu-
nications links) and is highly recommended for those moving data between different
processors, such as between a
UNIX system and a DOS PC.
–d forces the creation of necessary intermediate directories when they do not already
exist.
–f inverts the sense of pattern matching. More precisely, cpio extracts a file from the
archive if and only if it does not match any of the pattern arguments.
–I file causes input to be read from the specified file, rather than stdin.
–l gives permission to create a link to a file rather than making a separate copy.
–m resets the modification time of an output file to the modification time of the source
file. Normally, when cpio copies data into a file, it sets the modification time of the
file to the time at which the file is written.
–O file causes output to be written to the specified file, rather than stdout.
–q assumes all created files are
ASCII text. On UNIX and POSIX-compliant systems, this
means that any \r (carriage return) characters are stripped, and only the \n (new-
lines) are retained.
It might be desirable to have this option work on output also, converting text to a sys-
tem-independent format; however, due to the format of an archive file, this would
(unacceptably) require all files to be read twice.
–r provides an interactive mechanism for selecting and renaming particular files. For
each file processed, cpio displays the name before copying it to its new location. At
this point, you may type in a new name for the file. If you enter an empty line, the
file is skipped.
1-134 Commands and Utilities