Cpio

From Just Solve the File Format Problem
(Difference between revisions)
Jump to: navigation, search
m (Change telparia.com samples link to template)
(Add more notable uses of cpio especially in Linux. Add references section and star utility to software section.)
Line 9: Line 9:
 
{{DISPLAYTITLE:cpio}}
 
{{DISPLAYTITLE:cpio}}
  
'''cpio''' is a non-compressed file archive format for [[Unix]]-style systems. It was originally intended for tape archiving, similar to the [[Tape Archive]] (tar) format.
+
'''cpio''' is a non-compressed file archive format for [[Unix]]-style systems. It was originally intended for tape archiving, similar to the [[Tape Archive]] (tar) format.
 +
 
 +
In [[Linux]] cpio archive can readily be found in <code>/boot</code> as filename <code>/boot/initramfs*.img</code> for kernel versions 2.6 and onwards.<ref>[[wikipedia:cpio|cpio on Wikipedia]]</ref><ref>[https://www.kernel.org/doc/html/latest/driver-api/early-userspace/early_userspace_support.html Early userspace support - kernel documentation]</ref> Alternatively, cpio archives are used as [[RPM]] packages.
  
 
== Examples ==
 
== Examples ==
Line 37: Line 39:
 
* [[Konvertor]]
 
* [[Konvertor]]
 
* {{Deark}}
 
* {{Deark}}
 +
* [[tar#software|star]]
  
 
== Sample files ==
 
== Sample files ==
Line 49: Line 52:
 
* [http://rightsock.com/~kjw/Ramblings/tar_v_cpio.html tar vs. cpio]
 
* [http://rightsock.com/~kjw/Ramblings/tar_v_cpio.html tar vs. cpio]
 
* [https://web.archive.org/web/20190809160054/http://www.forensicswiki.org/wiki/Cpio ForensicsWiki entry] (no useful detail)
 
* [https://web.archive.org/web/20190809160054/http://www.forensicswiki.org/wiki/Cpio ForensicsWiki entry] (no useful detail)
 +
 +
== References ==
 +
<references/>

Revision as of 00:30, 12 August 2025

File Format
Name cpio
Ontology
Extension(s) .cpio
MIME Type(s) application/x-cpio
PRONOM fmt/635


cpio is a non-compressed file archive format for Unix-style systems. It was originally intended for tape archiving, similar to the Tape Archive (tar) format.

In Linux cpio archive can readily be found in /boot as filename /boot/initramfs*.img for kernel versions 2.6 and onwards.[1][2] Alternatively, cpio archives are used as RPM packages.

Contents

Examples

To extract files, using the command line utility:

 $ cpio -idmv -I example.cpio

To list files:

 $ cpio -it -I example.cpio

Identification

A cpio archive begins with one of the following signatures:

  • 0x71 0xC7
  • 0xC7 0x71
  • '0' '7' '0' '7'

Be aware that there are afio extensions to cpio format that are not supported by most cpio utilities. For one thing, if most of the filenames end in ".z", it's probably a compressed afio archive.

Specifications

Software

Sample files

Other links

References

  1. cpio on Wikipedia
  2. Early userspace support - kernel documentation
Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox