cpio (target)

Copy file archives into and out of a newc format cpio archive (POSIX, toybox)

Syntax:

cpio -{i|o|p|t| dest} [-dLtuv] [--verbose] [-F file] [-R user[:group]
     [--no-preserve-owner]

Runs on:

QNX OS

Options:

-d
Create directories if needed.
-F file
Use the archive file instead of the standard input or standard output.
-i dest
Extract files from the archive and copy them into the file system (stdin=archive).
-L
Follow symlinks.
--no-preserve-owner
Don't set file ownership during extraction.
-o dest
Create archive (stdin=list of files, stdout=archive).
-p dest
Copy-pass mode: copy the standard input file list to the specified directory destination.
-R user
Replace owner with user[:group].
-t
Test files (list only, stdin=archive, stdout=list of files).
-u
Unlink existing files when extracting.
-v, --verbose
Be verbose.

Description:

The cpio utility produces and reads files in and out of a new (SVR4) portable (newc) format archive.

This utility is provided as part of the toybox package. For information on how to enable it, see toybox.

Contributing author:

Rob Landley and the toybox project (see https://landley.net/toybox/).

Page updated: