Open System Services Shell and Utilities Reference Manual (G06.25+, H06.03+)

cpio(1) OSS Shell and Utilities Reference Manual
NAME
cpio - Copies les to and from archive storage
SYNOPSIS
cpio -o[aBcv]
cpio -i[Bcdfmrtuv][pattern ... ]
cpio -p[adlmuv] directory
FLAGS
The -i, -o, and -p ags are described in the DESCRIPTION section of this reference page.
-a Resets the access times of copied les to the current time. (When the -l ag is
also specied, the access times of the linked les are not reset.)
-B Performs block input/output, 5120 bytes to a record.
-c Writes header information in ASCII character form. Specify this ag when
POSIX compliance is required and when you are creating or restoring archives
for or from another system. Archives written with -c must also be read with -c.
Use this ag to read archives written by pax.
-d Creates directories as needed.
-f Copies all les except those matching pattern (cpio -i only).
-l Links les rather than copying them, whenever possible. This ag can be used
only with cpio -p.
-m Retains previous le modication time. This ag is ineffective when copying
directories.
-r Causes cpio to ask whether you want to rename each le before copying it. If
you do not want to change the lename, enter the current lename or press
only Return. In this last case, cpio does not copy the le.
-t Prints a table of contents of the input. Printing the table of contents does not
copy any les.
-u Copies unconditionally. Otherwise, a le from the archive with the same name
as an existing le in the le system is copied only if the archived le is the
newer one.
-v Lists lenames. If you use this with the -t ag, the output looks similar to that
of the ls -l command.
DESCRIPTION
The cpio command is used to save and restore data from traditional-format cpio archives.
cpio -o (Copy Out)
This command reads le pathnames from the standard input le and copies these les to the stan-
dard output le along with pathnames and status information. Output is padded to a 512-byte
boundary.
272 Hewlett-Packard Company 527188-003