cp fromfile tofile cp fromfile... todir cp -r fromdir... todir
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
cat - concatenate files
|
stat, fstat, fwstat, wstat - get and put file status in Chapter 8
|