cpio: add page

waldyrious/alt-syntax
FlyingJester 2016-05-10 10:01:53 -07:00 committed by Agniva De Sarker
parent 87faf0ee10
commit a53fb05c95
1 changed files with 16 additions and 0 deletions

16
pages/common/cpio.md Normal file
View File

@ -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}}`