cpio  command has 3 modes


copy-out ( -o or –create options) creates an archive and copies in the files

copy-in ( -i or –extract) extracts data from an archive

Copy-pass (-p or –pass-through) combines copy-out and copy-in



In copy-pass mode, cpio copies files from one directory tree to another, combining the copy-out and copy-in steps without actually using an archive.

It reads the list of files to copy from the standard input; the directory into which it will copy them is given as a non-option argument. Copy-Pass mode syntax: