cpio-copies file archives in and out

 <  Day Day Up  >  

cpio ”copies file archives in and out

 cpio i [ bBcdfkmrsStuvV6 ] [ C bufsize ] [ E filename ]   [ H header ] [ I filename [ M message ] ] [ R id ]   [ pattern ... ] cpio o [ aABcLvV ] [ C bufsize ] [ H header ]   [ O filename [ M message ] ] cpio p [ adlLmuvV ] [ R id ] directory 

cpio copies file archives according to the modifiers given, usually for backup to a tape or directory.

Example A.16.
 find . -depth -print  cpio -pdmv /home/john/tmp 

EXPLANATION

Starting at the current directory, find descends the directory hierarchy, printing each entry of the directory even if the directory does not have write permission, and sends the filenames to cpio to be copied into the john/tmp directory in the /home partition.

 <  Day Day Up  >  


UNIX Shells by Example
UNIX Shells by Example (4th Edition)
ISBN: 013147572X
EAN: 2147483647
Year: 2004
Pages: 454
Authors: Ellie Quigley

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net