Command Reference Guide

__________________________________________________________________________________________________________________________________________________________________________________________________
__________________________________________________________________________________________________________________________________________________________________________________________________
STANDARD Printed by: Nora Chuang [nchuang] STANDARD
/build/1111/BRICK/man1/!!!intro.1
________________________________________________________________
___ ___
c
cp(1) cp(1)
To copy all files and directory subtrees in sourcedir to targetdir, use:
cp -r sourcedir/* targetdir
Note that directory pathnames can precede both sourcedir and targetdir.
To create a zero-length file, use any of the following:
cat /dev/null >file
cp /dev/null file
touch file
DEPENDENCIES
NFS
Access control lists of networked files are summarized (as returned in st_mode by stat()), but not
copied to the new file. When using mv or ln on such files, a + is not printed after the mode value when
asking for permission to overwrite a file.
AUTHOR
cp was developed by AT&T, the University of California, Berkeley, and HP.
SEE ALSO
cpio(1), ln(1), mv(1), rm(1), link(1M), lstat(2), readlink(2), stat(2), symlink(2), symlink(4), acl(5), aclv(5).
STANDARDS CONFORMANCE
cp: SVID2, SVID3, XPG2, XPG3, XPG4, POSIX.2
Section 1116 3 HP-UX Release 11i: December 2000
___
___