mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-08-05 08:15:35 +02:00
cpio: add page
This commit is contained in:
parent
87faf0ee10
commit
a53fb05c95
1 changed files with 16 additions and 0 deletions
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}}`
|
||||
|
Loading…
Add table
Reference in a new issue