Provided by:
manpages-zh_1.5.2-1_all 
NAME
cpio -
(SYNOPSIS)
cpio {-o|--create} [-0acvABLV] [-C bytes] [-H format] [-M message] [-O
[[user@]host:]archive] [-F [[user@]host:]archive]
[--file=[[user@]host:]archive] [--format=format] [--message=message]
[--null] [--reset-access-time] [--verbose] [--dot] [--append] [--block-
size=blocks] [--dereference] [--io-size=bytes] [--quiet]
[--force-local] [--help] [--version] < name-list [> archive]
cpio {-i|--extract} [-bcdfmnrtsuvBSV] [-C bytes] [-E file] [-H format]
[-M message] [-R [user][:.][group]] [-I [[user@]host:]archive] [-F
[[user@]host:]archive] [--file=[[user@]host:]archive] [--make-
directories] [--nonmatching] [--preserve-modification-time] [--numeric-
uid-gid] [--rename] [--list] [--swap-bytes] [--swap] [--dot]
[--unconditional] [--verbose] [--block-size=blocks] [--swap-halfwords]
[--io-size=bytes] [--pattern-file=file] [--format=format]
[--owner=[user][:.][group]] [--no-preserve-owner] [--message=message]
[--force-local] [--no-absolute-filenames] [--sparse]
[--only-verify-crc] [--quiet] [--help] [--version] [pattern...] [<
archive]
cpio {-p|--pass-through} [-0adlmuvLV] [-R [user][:.][group]] [--null]
[--reset-access-time] [--make-directories] [--link] [--quiet]
[--preserve-modification-time] [--unconditional] [--verbose] [--dot]
[--dereference] [--owner=[user][:.][group]] [--no-preserve-owner]
[--sparse] [--help] [--version] destination-directory < name-list
(DESCRIPTION)
GNU cpio.
cpio cpio tar (archive) , , , , , (timestamp), . , .
cpio .
copy-out , cpio . , . . find ; find -depth , .
copy-in , cpio , , . shell (globbing pattern); ,
. shell , '.' , '/' . , .
copy-pass , cpio , copy-in copy-out , . cpio ; .
cpio : binary, old ASCII, new ASCII, crc, HPUX binary, HPUX old
ASCII, old tar, POSIX.1 tar.
"binary" , . "old ASCII" , 65536 i . "new ASCII" ,
, cpio , GNU System VR4 cpio "new ASCII" . "crc" "new ASCII"
, ; cpio , . "HPUX" HP UNIX cpio, .
"tar" tar . 100 , ( ) . "POSIX.1 tar" 255 ( 255,
"/").
, cpio cpio , "binary" . , cpio , .
cpio ; , .
(OPTIONS)
-0, --null
copy-out copy-pass , null , , , . GNU find null
.
-a, --reset-access-time
, .
-A, --append
. copy-out . -O -F (--file) .
-b, --swap
copy-in , . -sS. 32 .
-B I/O 5120 . 512 .
--block-size=BLOCK-SIZE
I/O BLOCK-SIZE * 512 .
-c (ASCII) .
-C IO-SIZE, --io-size=IO-SIZE
I/O IO-SIZE .
-d, --make-directories
.
-E FILE, --pattern-file=FILE
copy-in , FILE . FILE cpio .
-f, --nonmatching
.
-F, --file=archive
, . , "HOSTNAME:" . '@', ( , ~/.rhosts ).
--force-local
-F, -I, -O, , , , .
-H FORMAT, --format=FORMAT
FORMAT. , . "copy-in" , "copy-out" "bin".
bin binary .
odc (POSIX.1) .
newc (SVR4) , 65536 i .
crc (SVR4) , .
tar tar .
ustar POSIX.1 tar , GNU tar , .
hpbin HP UNIX cpio binary . ( )
hpodc HP UNIX cpio . ( )
-i, --extract
copy-in .
-I archive
, . , "HOSTNAME:" . '@', ( , ~/.rhosts ).
-k ; cpio.
-l, --link
, , .
-L, --dereference
( , ).
-m, --preserve-modification-time
, .
-M MESSAGE, --message=MESSAGE
( ) , , . MESSAGE "%d", ( 1 ).
-n, --numeric-uid-gid
(verbose) , UID GID, .
--no-absolute-filenames
copy-in , , .
--no-preserve-owner
copy-in copy-pass , (: ); . , System V .
-o, --create
copy-out .
-O archive
, . , "HOSTNAME:" . '@', ( , ~/.rhosts ).
--only-verify-crc
copy-in CRC , , CRC .
-p, --pass-through
copy-pass .
--quiet
.
-r, --rename
.
-R [user][:.][group], --owner [user][:.][group]
copy-out copy-pass , / . . , ":" ".', . .
--sparse
copy-out copy-pass , 0 (sparse file).
-s, --swap-bytes
copy-in , () .
-S, --swap-halfwords
copy-in , (4) .
-t, --list
() .
-u, --unconditional
, .
-v, --verbose
, -t 'ls -l' . (verbose) , , UIDGID .
-V --dot
, ".".
--version
cpio , .
[]
<xuming@iname.com>
[]
2001/09/25
Linuxman
http://cmpp.linuxforum.net
CPIO(1)