cp [ -gux ] fromfile ... todir
cp -r [ -gux ] fromdir ... todir
fcp [ -R " nr" ] [ -W " nw" ] fromfile tofile
fcp [ -R " nr" ] [ -W " nw" ] fromfile ... todir
fcp -r [ -R " nr" ] [ -W " nw" ] fromdir ... todir
is equivalent to:
"cp f1 dir/f1; cp f2 dir/f2"Cp copies the contents of plain (non-directory) file fromfile to tofile . The mode and owner of tofile are preserved if it already exists; the permissions of fromfile is used otherwise. The -x option sets the full mode and modified time of file2 from file1 ; -g sets the group id; and -u sets the group id and user id (which is usually only possible if the file server is in an administrative mode).
The -r option directs cp to copy recursively the named directories "fromdir ..." to the target directory todir .
Fcp behaves like cp , but copies many blocks in parallel. It works only with files that respect read and write offsets (see pread and pwrite in sys-read (2)), which usually excludes files representing devices or services. When it applies, however, it is often much faster than cp . The -R and -W options set the number of readers and writers (default for each: 8).