Compression and Archives

cpio

Copies files into or out of cpio archives.

cpio is an archive format and tool still used in some boot and packaging workflows, including initramfs internals.

Syntax
cpio [options]

Arguments explained

  • Options adjust output or behavior.
  • Arguments name the files, services, hosts, or values the command should work with.

Common examples

Create an archive
find . -type f | cpio -o > archive.cpio

Writes listed files into a cpio archive.

List an archive
cpio -it < archive.cpio

Lists files inside the archive.

cpio Command
FieldDetails
Commandcpio
CategoryCompression and Archives
Primary useCopies files into or out of cpio archives.
Syntaxcpio [options]