


      CCCCPPPPIIIIOOOO((((1111))))                     ((((UUUUNNNNIIIIXXXX 5555....0000))))                    CCCCPPPPIIIIOOOO((((1111))))



      NNNNAAAAMMMMEEEE
           cpio - copy file archives in and out

      SSSSYYYYNNNNTTTTAAAAXXXX
           ccccppppiiiioooo ----oooo [ aaaaccccBBBBvvvv ]

           ccccppppiiiioooo ----iiii [ BBBBccccddddmmmmrrrrttttuuuuvvvvffffssssSSSSbbbb6666RRRR ] [ patterns ]

           ccccppppiiiioooo ----pppp [ aaaaddddllllmmmmrrrruuuuvvvv ] directory

      DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
           CCCCppppiiiioooo ----oooo (copy out) reads the standard input to obtain a list
           of path names and copies those files onto the standard
           output together with path name and status information.

           CCCCppppiiiioooo ----iiii (copy in) extracts files from the standard input
           which is assumed to be the product of a previous ccccppppiiiioooo ----oooo.
           Only files with names that match _p_a_t_t_e_r_n_s are selected.
           _P_a_t_t_e_r_n_s are given in the name-generating notation of _s_h(1).
           In _p_a_t_t_e_r_n_s, meta-characters ????, ****, and [[[[...]]]] match the slash
           //// character.  Multiple _p_a_t_t_e_r_n_s may be specified and if no
           _p_a_t_t_e_r_n_s are specified, the default for _p_a_t_t_e_r_n_s is **** (i.e.,
           select all files).  The extracted files are conditionally
           created and copied into the current directory tree based
           upon the options described below.

           CCCCppppiiiioooo ----pppp (pass) reads the standard input to obtain a list of
           path names of files that are conditionally created and
           copied into the destination _d_i_r_e_c_t_o_r_y tree based upon the
           options described below.

           The meanings of the available options are:

           aaaa    Reset access times of input files after they have been
                copied.
           BBBB    Input/output is to be blocked 5,120 bytes to the record
                (override the default 512 bytes per block) (does not
                apply to the _p_a_s_s option; meaningful only with data
                directed to or from magnetic tape.)
           dddd    _D_i_r_e_c_t_o_r_i_e_s are to be created as needed.
           cccc    Write _h_e_a_d_e_r information in ASCII character form for
                portability.
           rrrr    Interactively _r_e_n_a_m_e files.  If the user types a null
                line, the file is skipped.
           tttt    Print a _t_a_b_l_e _o_f _c_o_n_t_e_n_t_s of the input.  No files are
                created.
           uuuu    Copy _u_n_c_o_n_d_i_t_i_o_n_a_l_l_y (normally, an older file will not
                replace a newer file with the same name).
           vvvv    _V_e_r_b_o_s_e:  causes a list of file names to be printed.
                When used with the tttt option, the table of contents
                looks like the output of an llllssss ----llll command (see _l_s(1)).
           llll    Whenever possible, link files rather than copying them.



      Page 1                                                   (9010-E)






      CCCCPPPPIIIIOOOO((((1111))))                     ((((UUUUNNNNIIIIXXXX 5555....0000))))                    CCCCPPPPIIIIOOOO((((1111))))



                Usable only with the ----pppp option.
           HHHH    Make file headers compatible with DEC VAX-11 and PDP-
                11.  Use with ccccppppiiiioooo ----iiii to read a VAX-11 or PDP-11 cpio
                tape that was not created with ----cccc.
           mmmm    Retain previous file modification time.  This option is
                ineffective on directories that are being copied.
           ffff    Copy in all files except those in _p_a_t_t_e_r_n_s.
           ssss    Swap bytes.  Use only with the ----iiii option.
           SSSS    Swap halfwords.  Use only with the ----iiii option.
           bbbb    Swap both bytes and halfwords in the data.  Use only
                with the ----iiii option.
           6666    Process an old (i.e., UNIX System _S_i_x_t_h Edition format)
                file.  Only useful with ----iiii (copy in).
           RRRR    Interactive replace of newer files.  A "y" response to
                the prompt will replace a newer file with an older one,
                any other response will not.  Has no effect when used
                with the ----uuuu option.

      EEEEXXXXAAAAMMMMPPPPLLLLEEEESSSS
           The first example below copies the contents of a directory
           into an archive; the second duplicates a directory
           hierarchy:

                ls | cpio -o >/dev/mt0

                cd olddir
                find .... -depth -print | cpio -pdl newdir

           The trivial case

                find .... -depth -print | cpio -oB >/dev/rmt0

           can be handled more efficiently by:

                find .... -cpio /dev/rmt0

      SSSSEEEEEEEE AAAALLLLSSSSOOOO
           ar(1), find(1), cpio(4).

      NNNNOOOOTTTTEEEESSSS
           When transferring files between a Ridge 32 and a machine
           with different byte ordering (VAX, PDP-11, Zilog Z8000), use
           the ----cccc compatibility option.

      BBBBUUUUGGGGSSSS
           Path names are restricted to 128 characters. If there are
           too many unique linked files, the program runs out of memory
           to keep track of them and, thereafter, linking information
           is lost.






      Page 2                                                   (9010-E)



