cpio: add page
This commit is contained in:

committed by
Agniva De Sarker

parent
87faf0ee10
commit
a53fb05c95
16
pages/common/cpio.md
Normal file
16
pages/common/cpio.md
Normal 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}}`
|
||||||
|
|
Reference in New Issue
Block a user