linux version BSD down there
cp - copy files and directories
Copy SOURCE to DEST, or multiple SOURCE(s) to DIRECTORY.
An attempt to copy a file to itself fails.
|verbose, showing files as they are copied.|
cp fileDirectory form,
target_directory must exist,
a directory is the source and
-R is specified.
The mode of the destination file (if it does not exist) is the mode of the source modified by the
If the source file has its set user ID bit on, that bit is removed unless
both the source file and the destination file are owned by the same user.
If the source file has its set group ID bit on, that bit is removed unless both the source file and the destination file are in the same group and the user is a member of that group.
If both the set user ID and set group ID bits are set, all of the above conditions must be fulfilled or both bits are removed.
Appropriate permissions are required for file creation or overwriting.
Symbolic links are followed unless
-R is set.
-L (in conjunction with
cause symbolic links to be followed as described above.
-P are ignored unless
These options override each other and the last one specified is used.
exits 0 on success, and >0 if an error occurs.
CP BSD July 23, 2002