Unix/Linux Go Back    

Plan 9 - man page for cp (plan9 section 1)

Linux & Unix Commands - Search Man Pages
Man Page or Keyword Search:   man
Select Man Page Set:       apropos Keyword Search (sections above)

CP(1)											    CP(1)

       cp, mv  - copy, move files

       cp file1 file2
       cp file ... directory

       mv file1 file2
       mv file ... directory

       In  the	first  form file1 is any name and file2 is any name except an existing directory.
       In the second form the commands copy or move one or more  files	into  a  directory  under
       their  original	file  names,  as if by a sequence of commands in the first form.  Thus is
       equivalent to

       Cp copies the contents of plain file1 to file2.	The mode and owner of file2 are preserved
       if it already exists; the mode of file1 is used otherwise.

       Mv  moves  file1 to file2.  If the files are in the same directory, file1 is just renamed;
       otherwise mv behaves like cp followed by rm.  Mv will rename directories, but  it  refuses
       to move a directory into another directory.


       cat(1), stat(2)

       Cp and mv refuse to copy or move files onto themselves.

Unix & Linux Commands & Man Pages : ©2000 - 2018 Unix and Linux Forums

All times are GMT -4. The time now is 07:06 PM.