Explorar el Código

cpio: add page

FlyingJester hace 9 años
padre
commit
a53fb05c95
Se han modificado 1 ficheros con 16 adiciones y 0 borrados
  1. 16 0
      pages/common/cpio.md

+ 16 - 0
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}}`
+