Syntax
$cpio options devicename -i | (copy in) cpio -i extracts files from the standard input. | -o | (copy out) cpio -o reads the standard input to obtain a list of path names and copies those files onto the standard output. | -p | (pass) cpio -p reads the standard input to obtain a list of path names of files. |
-v Verbose. Print a list of file names.When used with the -t option, the table of contents looks like the output of an ls -l command
In conjunction with the above commands the below commands can be used. -a | Reset access times of input files after they have been copied. Access times are not reset for linked files when cpio -pla is specified (mutually exclusive with -m). | -A | Append files to an archive. The -A option requires the -O option. Valid only with archives that are files, or that are on floppy diskettes or hard disk partitions. | -b | Reverse the order of the bytes within each word. (Use only with the -i option.) | -B | Block input/output 5120 bytes to the record. The default buffer size is 512 bytes when this and the -C options are not used. -B does not apply to the pass option; -B is meaningful only with data directed to or from a character special device, for example, /dev/rmt/0m. | -c | Read or write header information in ASCII character form for portability. There are no UID or GID restrictions associated with this header format. Use this option between SVR4-based machines, or the -H odc option between unknown machines. The -c option implies the use of expanded