cpio—copy 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

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 of the entries 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.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.16.75.165