


      CP(1)                       (UNIX 5.0)                      CP(1)



      NAME
           cp, ln, mv - copy, link or move files

      SYNTAX
           cp file1 [ file2 ...] target
           ln file1 [ file2 ...] target
           mv file1 [ file2 ...] target

      DESCRIPTION
           File1 is copied (linked, moved) to target.  Under no
           circumstance can file1 and target be the same (take care
           when using sh(1) metacharacters).  If target is a directory,
           then one or more files are copied (linked, moved) to that
           directory.

           If mv determines that the mode of target forbids writing, it
           will print the mode (see chmod(2)) and read the standard
           input for one line (if the standard input is a terminal); if
           the line begins with y, the move takes place; if not, mv
           exits.

           Only mv will allow file1 to be a directory, in which case
           the directory rename will occur only if the two directories
           have the same parent.

      SEE ALSO
           cpio(1), rm(1), chmod(2).

      BUGS
           If file1 and target lie on different file systems, mv must
           copy the file and delete the original.  In this case the
           owner name becomes that of the copying process and any
           linking relationship with other files is lost.

           Ln will not link across file systems.




















      Page 1                                          (73 A2 02MT REV1)



