man > cpio(1)

```html

CPIO(1) GNU CPIO CPIO(1)

📛 NAME

cpio — copy files to and from archives

🚀 Quick Reference

Use Case Command Description
🔧 Create an archive find . -type f | cpio -o > archive.cpio Read file list from stdin, write archive to stdout
đŸ“Ļ Extract an archive cpio -i < archive.cpio Read archive from stdin, extract files
📋 List archive contents cpio -it < archive.cpio List files without extracting
đŸ—œī¸ Create compressed archive find . | cpio -o | gzip > archive.cpio.gz Combine with gzip for compression
🔓 Extract from compressed archive zcat archive.cpio.gz | cpio -i Use zcat to decompress on the fly
📁 Copy directory tree find . -depth | cpio -p /destination Pass-through mode copies files to another directory

📋 SYNOPSIS

cpio {-o|--create} [-0acvABLV] [-C BYTES] [-H FORMAT] [-M MESSAGE] [-O [[USER@]HOST:]ARCHIVE]
       [-F [[USER@]HOST:]ARCHIVE] [--file=[[USER@]HOST:]ARCHIVE]  [--format=FORMAT]  [--message=MES‐
SAGE]  [--null]  [--reset-access-time]  [--verbose]  [--dot] [--append] [--block-size=blocks]
       [--dereference] [--io-size=BYTES] [--quiet] [--force-local] [--rsh-command=COMMAND]  <  name-
list [> archive]

cpio  {-i|--extract}  [-bcdfmnrtsuvBSV]  [-C  BYTES]  [-E  FILE] [-H FORMAT] [-M MESSAGE] [-R
       [USER][:.][GROUP]]      [-I      [[USER@]HOST:]ARCHIVE]      [-F       [[USER@]HOST:]ARCHIVE]
       [--file=[[USER@]HOST:]ARCHIVE]   [--make-directories]  [--nonmatching]  [--preserve-modifica‐
tion-time] [--numeric-uid-gid] [--rename] [--list] [--swap-bytes] [--swap] [--dot]  [--uncon‐
ditional]  [--verbose]  [--block-size=BLOCKS]  [--swap-halfwords]  [--io-size=BYTES]  [--pat‐
tern-file=FILE] [--format=FORMAT] [--owner=[USER][:.][GROUP]]  [--no-preserve-owner]  [--mes‐
sage=MESSAGE]   [--force-local]   [--no-absolute-filenames]   [--sparse]  [--only-verify-crc]
       [--to-stdout] [--quiet] [--rsh-command=COMMAND] [pattern...] [< archive]

cpio {-p|--pass-through} [-0adlmuvLV] [-R [USER][:.][GROUP]]  [--null]  [--reset-access-time]
       [--make-directories]   [--link]  [--quiet]  [--preserve-modification-time]  [--unconditional]
       [--verbose]   [--dot]   [--dereference]   [--owner=[USER][:.][GROUP]]   [--no-preserve-owner]
       [--sparse] destination-directory < name-list

cpio {-?|--help|--usage|--version}

📖 DESCRIPTION

GNU cpio copies files between archives and directories. It supports the following archive formats: old binary cpio, old portable cpio, SVR4 cpio with and without checksum, HP cpio, and various tar formats.

The operation mode is requested by one of the following options:

📤 -o, --create (Copy-out)

Read a list of file names from the standard input and create on the standard output (unless overridden by the --file option) an archive containing these files.

đŸ“Ĩ -i, --extract (Copy-in)

Read the archive from standard input (or from the file supplied with the --file option) and extract files from it, or (if the -t option is given) list its contents to the standard output. If one or more patterns are supplied, read or list only files matching these patterns. The -t option alone implies -i.

📂 -p, --pass-through (Pass-through)

Read a list of file names from the standard input and copy them to the specified directory.

❓ -?, --help

Give a short help summary and exit.

❓ --usage

Print a short usage message and exit.

â„šī¸ --version

Print program version and exit.

âš™ī¸ OPTIONS

🔧 Operation modifiers valid in any mode

🔧 Operation modifiers valid in copy-in and copy-out modes

🔧 Operation modifiers valid only in copy-in mode

🔧 Operation modifiers valid only in copy-out mode

🔧 Operation modifiers valid only in copy-pass mode

🔧 Operation modifiers valid in copy-in and copy-out modes

🔧 Operation modifiers valid in copy-out and copy-pass modes

🔧 Operation modifiers valid in copy-in and copy-pass modes

đŸšĒ Exit Codes

GNU cpio exits with code 0 if it was able to successfully complete the requested operation. On errors, it exits with code 2.

📚 SEE ALSO

🐛 REPORTING BUGS

Report cpio bugs to bug-cpio AT gnu.org

GNU cpio home page: http://www.gnu.org/software/cpio/

General help using GNU software: http://www.gnu.org/gethelp/

Report cpio translation bugs to http://translationproject.org/team/

📄 COPYRIGHT

Copyright Š 2014 Free Software Foundation, Inc.

License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html

This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law.

```
cpio(1)
CPIO(1) GNU CPIO CPIO(1) 📛 NAME 🚀 Quick Reference 📋 SYNOPSIS 📖 DESCRIPTION
📤 -o, --create (Copy-out) đŸ“Ĩ -i, --extract (Copy-in) 📂 -p, --pass-through (Pass-through) ❓ -?, --help ❓ --usage â„šī¸ --version
âš™ī¸ OPTIONS
🔧 Operation modifiers valid in any mode 🔧 Operation modifiers valid in copy-in and copy-out modes 🔧 Operation modifiers valid only in copy-in mode 🔧 Operation modifiers valid only in copy-out mode 🔧 Operation modifiers valid only in copy-pass mode 🔧 Operation modifiers valid in copy-in and copy-out modes 🔧 Operation modifiers valid in copy-out and copy-pass modes 🔧 Operation modifiers valid in copy-in and copy-pass modes
đŸšĒ Exit Codes 📚 SEE ALSO 🐛 REPORTING BUGS 📄 COPYRIGHT

Generated by phpman v4.10.0-7-g98e9fd5 · Markdown · JSON · MCP Author: Che Dong Under GNU General Public License
2026-09-04 14:28 @216.73.216.128
CrawledBy Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
Valid XHTML 1.0 Transitional!Valid CSS!

^_top_^