Open System Services Shell and Utilities Reference Manual (G06.29+, H06.08+, J06.03+)
User Commands (c) cp(1)
HP Extensions
-L Overrides the default behavior of the -R flag so that cp follows symbolic
links.
-W clobber Allows the existing target Guardian file to be overwritten using the data
from the source file. This operation retains the following attributes of
the target file:
• The file code
• The type of unstructured file (odd unstructured or even unstruc-
tured)
• The buffering attribute (BUFFERED or NOBUFFERED)
• The security attributes (RWEP)
You must set any other file attributes, as needed.
If the target file is protected by Safeguard and you use the -W clobber
flag, the Safeguard protection might be lost or changed. The cp com-
mand issues a warning when used with the -W clobber flag on a file pro-
tected by Safeguard.
When the -W clobber flag is used, the -p, -W NOG, and -W NOE flags
and the UTILSGE environment variable are ignored.
For more information about using this utility on Guardian files, see "Use
on Guardian Objects."
-W NOG Specifies that the /G directory should be omitted when the initial direc-
tory is root (/) and a recursive flag (-R or -r) is used. This flag is ignored
when the initial directory is not /, /E,or/E/system or when recursion
does not occur.
-W NOE Specifies that the /E directory should be omitted when the initial direc-
tory is root (/) and a recursive flag (-R or -r) is used. This flag is ignored
when the initial directory is not root (/) or when recursion does not
occur.
Specify both the -W NOG and -W NOE flags to omit both the /G and /E directories.
DESCRIPTION
The cp command copies a source file or directory to a destination file or directory
In the first form given in SYNOPSIS, the cp command copies the contents of source_file into
target_file.Iftarget_file exists, its contents are overwritten provided the user has write permis-
sion on target_file’s parent directory.
In the second form, two or more files are copied to the destination directory.
In the third form, source directories, including all subdirectories and files within them, are copied
to the destination.
A destination directory must exist in order for a source directory or source file to be copied to it.
Appropriate permissions are always required for file creation or overwriting.
If the destination directory exists, the source directory or files are copied into the destination with
their original names.
If the destination exists, and both the source and destination are files, the source file overwrites
527188-021 Hewlett-Packard Company 2−103