cpio

Creates an archive or restores files from an archive

cpio -o [options]

cpio -i [options] [patterns]

cpio -p [options] directory

The cpio utility has three modes of operation. It allows you to place multiple files into a single archive file (create or copy-out), restore files from an archive (extract or copy-in), and copy a directory hierarchy to another location (pass-through or copy-pass). The archive file used by cpio may be saved on disk, tape, other removable media, or a remote system.

Create mode reads a list of ordinary or directory filenames from standard input and writes the resulting archive file to standard output. Use this mode to create an archive. Extract mode reads the name of an archive from standard input and extracts files ...

Get A Practical Guide to Red Hat® Linux® 8 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.