cpio

linux

What are the command line options for the cpio command?

-o    // copy out (archive)
-i    // copy in (extract)
-u    // unconditional replacement
-B,-C 5120        // bytes per record default is 512
-d    // create directories as needed
-v    // verbose
-m    // retain original modification time, not applicable for directories
-c    // write header in ASCII
find . -print | cpio -ocvB
cpio -icBdmuv /usr/os/.login < /dev/tape/usros
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License