cp
Syntax
cp [options] <SOURCE-FILENAME/SOURCE-DIRECTORY> <DESTINATION-FLENAME/DESTINATION-DIRECTORY>
Description
Copies files or directories.
Command context
Service OS (SVOS>
)
Parameters
[options]
Selects the options for the command.
-d,-P
Specifies the preservation of symlinks (default if
-R
).
-a
Same as
-dpR
.
R,-r
Specifies recursiveness, all files, and subdirectories are copied.
-L
Specifies the following of all symlinks.
-H
Specifies the following of symlinks on command line.
-p
Specifies the preservation of file attributes if possible.
-f
Specifies the overwriting of a file or directory.
-i
Specifies the prompting before an overwrite.
-l,-s
Specifies the creation of (sym) links.
<SOURCE-FILENAME/SOURCE-DIRECTORY>
Specifies the name of the source file or directory.
<DESTINATION-FLENAME/DESTINATION-DIRECTORY>
Specifies the name of the destination file or directory.
Authority
Administrators
Example
Copying /home/customers directory to the /home/clients directory:
SVOS> cp /home/customers /home/clients