From a53fb05c9554f8b1da10da26e836011a271d1ce1 Mon Sep 17 00:00:00 2001 From: FlyingJester Date: Tue, 10 May 2016 10:01:53 -0700 Subject: [PATCH] cpio: add page --- pages/common/cpio.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 pages/common/cpio.md diff --git a/pages/common/cpio.md b/pages/common/cpio.md new file mode 100644 index 0000000000..ea00554a3c --- /dev/null +++ b/pages/common/cpio.md @@ -0,0 +1,16 @@ +# cpio + +> Archiving utility. + +- Create an archive from files + +`echo "{{file1}} {{file2}} {{file3}}" | cpio -ov > {{archive.cpio}}` + +- Create an archive from a directory + +`find {{directory}} | cpio -ov > {{archive.cpio}}` + +- Extract an archive + +`cpio -idv < {{archive.cpio}}` +