cp
Syntax
cp [options]
描述
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
-
指定递归性,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.
-
-
-
Specifies the name of the source file or directory.
-
-
Specifies the name of the destination file or directory.
权威
Administrators or local user group members with execution rights for this command.
Example
Copying /home/customers directory to the /home/clients directory:
SVOS>cp /home/customers /home/clients