cpio

From NetBSD Wiki

Jump to: navigation, search
This article is a stub. You can help by editing it.

The cpio(1) command lets you create and manage cpio archives.

Creating

The -o option is used to create an archive. It names of the files to include is read from stdin:

$ echo "test.txt" | cpio -o >test.cpio

The find tool can be used to create the file name list:

$ find . -print | cpio -o >test.cpio

Extracting

The -i option is used to extract files.

$ cpio -i <test.cpio

See also

Retrieved from "http://wiki.netbsd.se/cpio"
Personal tools