Cpio

From Just Solve the File Format Problem
(Difference between revisions)
Jump to: navigation, search
Line 1: Line 1:
 
{{FormatInfo
 
{{FormatInfo
 +
|name=cpio
 
|formattype=electronic
 
|formattype=electronic
 
|subcat=Archiving
 
|subcat=Archiving
Line 13: Line 14:
 
To list files:
 
To list files:
 
   $ cpio -it -I examples.cpio
 
   $ cpio -it -I examples.cpio
 +
 +
== Identification ==
 +
A cpio archive begins with one of the following signatures:
 +
* <code>0x71 0xC7</code>
 +
* <code>0xC7 0x71</code>
 +
* <code>'0' '7' '0' '7'</code>
 +
 +
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 ==
 
== Specifications ==
Line 21: Line 30:
 
* [http://www.libarchive.org/ libarchive / bsdcpio]
 
* [http://www.libarchive.org/ libarchive / bsdcpio]
 
* [http://gnuwin32.sourceforge.net/packages/cpio.htm cpio for Windows]
 
* [http://gnuwin32.sourceforge.net/packages/cpio.htm cpio for Windows]
* [http://www.7-zip.org/ 7-Zip]
+
* [[7-Zip]]
 +
* [[afio]]
  
 
== Sample files ==
 
== Sample files ==

Revision as of 22:53, 29 January 2014

File Format
Name cpio
Ontology
Extension(s) .cpio
MIME Type(s) application/x-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.

Contents

Examples

To extract files, using the command line utility:

 $ cpio -idmv -I example.cpio

To list files:

 $ cpio -it -I examples.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

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox