info > CPIO(1)

CPIO(1) GNU CPIO CPIO(1)

đŸˇī¸ NAME

cpio - copy files to and from archives

🚀 Quick Reference

Use CaseCommandDescription
Create archivecpio -o < file-list > archive.cpiođŸ“Ļ Create an archive from a list of files
Extract archivecpio -i < archive.cpio📂 Extract files from an archive
List archive contentscpio -it < archive.cpio📋 List files in an archive
Pass-through copycpio -p target-dir < file-list📁 Copy files to a directory
Create tar formatcpio -o -H tar < file-list > archive.tarđŸ“Ļ Create a tar archive
Extract with directoriescpio -idm < archive.cpio📂 Extract preserving directories and modification times

📋 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=MESSAGE] [--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-modification-time] [--numeric-uid-gid] [--rename] [--list] [--swap-bytes] [--swap] [--dot] [--unconditional] [--verbose] [--block-size=BLOCKS] [--swap-halfwords] [--io-size=BYTES] [--pattern-file=FILE] [--format=FORMAT] [--owner=[USER][:.][GROUP]] [--no-preserve-owner] [--message=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

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 (2)

📤📂 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 June 21, 2018 CPIO(1)

CPIO(1)
đŸˇī¸ NAME 🚀 Quick Reference 📋 SYNOPSIS 📖 DESCRIPTION
📤 -o, --create (Copy-out) đŸ“Ĩ -i, --extract (Copy-in) 📂 -p, --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 (2) 📤📂 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.9.26-5-g7740029 Author: Che Dong Under GNU General Public License
2026-08-26 08:57 @216.73.217.127
CrawledBy Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
Valid XHTML 1.0 Transitional!Valid CSS!