c — Inferno 1ed
c
cp fromfile tofile cp fromfile... todir cp -r fromdir... todir
Description
In the first form, fromfile is any name and tofile is any name except an existing directory.In the second form, the commands copy one or more fromfiles into a todir under their original file names, as if by a sequence of commands in the first form. For example:
When the cp command copies the contents of plain (non-directory) files fromfile to tofile, the mode and owner of tofile are preserved if it already exists; otherwise the mode of fromfile is used.cp f1 dir/f1; cp f2 dir/f2
Options
Diagnostics
The cp command refuses to copy files onto themselves.
See Also
|
cat - concatenate files
|
|
stat, fstat, fwstat, wstat - get and put file status in Chapter 8
|
infernosupport@lucent.com Copyright © 1996,Lucent Technologies, Inc. All rights reserved.