cp(1) | cp(1) |
To copy all ®les and directory subtrees in sourcedir to targetdir, use:
cp
Note that directory pathnames can precede both sourcedir and targetdir.
To create a
cat /dev/null >®le cp /dev/null ®le touch ®le
c
DEPENDENCIES
NFS
Access control lists of networked ®les are summarized (as returned in st_mode by stat()), but not copied to the new ®le. When using mv or ln on such ®les, a + is not printed after the mode value when asking for permission to overwrite a ®le.
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 1−116 | − 3 − |