| CPIO(1) | General Commands Manual | CPIO(1) |
cpio — copy file
archives in and out
cpio |
-o [-AaBcLvZz]
[-C bytes]
[-F archive]
[-H format]
[-O archive]
< name-list [>
archive] |
cpio |
-i [-6BbcdfmrSstuvZz]
[-C bytes]
[-E file]
[-F archive]
[-H format]
[-I archive]
[pattern ...] [<
archive] |
cpio |
-p [-adLlmuv]
destination-directory <
name-list |
The cpio command copies files to and from
a cpio archive. If the archive is of the form:
[[user@]host:]file then the archive will be processed
using rmt(8).
The options are as follows:
-o,
--create-a,
--reset-access-time-A,
--append-B-ccpio header for
portability.-C
bytes-F
archive-O
archive-H
formatcpio format.cpio format.cpio format.-L-v--xz-Z-z-i,
--extract-b-B-c-C
bytes-d,
--make-directories-E
file, --pattern-file
file-f,
--nonmatching-F
archive, --file
archive-I
archive-H
format, --format
formatcpio format.cpio format.cpio format.-m-r,
--rename-s-S,
--swap-halfwords-t,
--list-u,
--unconditional-v,
--verbose-z-Z-6cpio format archives.-p,
--pass-through-a-d-l,
--link-L,
--dereference-m,
--preserve-modification-time-u,
--unconditional-v,
--verbose--force-local--insecurecpio ignores filenames that contain
“..” as a path component. With this option, files that
contain “..” can be processed.cpio will exit with one of the following
values:
Whenever cpio cannot create a file or a
link when extracting an archive or cannot find a file while writing an
archive, or cannot preserve the user ID, group ID, file mode, or access and
modification times when the -p option is specified,
a diagnostic message is written to standard error and a non-zero exit value
will be returned, but processing will continue. In the case where
cpio cannot create a link to a file,
cpio will not create a second copy of the file.
If the extraction of a file from an archive is prematurely
terminated by a signal or error, cpio may have only
partially extracted the file the user wanted. Additionally, the file modes
of extracted files and directories may have incorrect file bits, and the
modification and access times may be wrong.
If the creation of an archive is prematurely terminated by a
signal or error, cpio may have only partially
created the archive which may violate the specific archive format
specification.
Keith Muller at the University of California, San Diego.
The -s and -S
options are currently not implemented.
| June 18, 2011 | NetBSD 11.0 |