O'Reilly logo

A Practical Guide to Red Hat® Linux® 8 by Mark G. Sobell

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required