Download as:
Rating : ⭐⭐⭐⭐⭐
Price: $10.99
Language:EN

Reference: cpio

UNIX in a Nutshell: System V Edition

 

cpio

cpio control_options [options]
cpio -i [options] [patterns]
cpio -o [options]
cpio -p [options] directory

Comparison of Valid Options

i: 6   b B c C d E f H I k   m M  r R s S t u v V
o: a A   B c C       H     L   M O            v V
p: a           d         l L m   P  R       u v V

Options

-a

Reset access times of input files.

-A

Append files to an archive (must use with -O).

-b
-B
-c
-C n
-d

Create directories as needed.

-E file

Extract filenames listed in file from the archive.

-f
-H format
-I file
-k
-l

Link files instead of copying. Can be used only with -p.

-L

Follow symbolic links.

-m
-M msg
-O file
-P
-r

Rename files interactively.

-R ID

Reassign file ownership and group information of extracted files to the user whose login ID is ID (privileged users only).

-s
-S
-t
-u
-v

Print a list of filenames.

-V

Print a dot for each file read or written (this shows cpio at work without cluttering the screen).

-6

Examples

find . -name "*.old" -print | cpio -ocBv > /dev/rmt/0
cpio -icdv "*save*" < /dev/rmt/0
find . -depth -print | cpio -padml /mydir

Previous: Reference: cp UNIX in a Nutshell: System V Edition Next: Reference: crontab
Reference: cp Book Index Reference: crontab

The UNIX CD Bookshelf Navigation
Copyright © 2009-2023 UrgentHomework.com, All right reserved.