The function of this command is to copy the given file or directory to another file or directory, which is as powerful as the copy command under MSDOS.
Syntax: CP [option] source file or directory destination file or directory
Description: This command copies the specified source files to the destination file or copies multiple source files to the destination directory.
The options for this command have the following meanings:
-A This option is usually used when copying directories. It retains the link, file attributes, and recursively copies the directory, which is equal to the combination of the DPR option.
-D Keep links when copying.
-F Deletes an existing destination file without prompting.
-I and F options, in contrast, will be prompted to confirm the user before overwriting the target file. When you answer y, the target file is overwritten and is an interactive copy.
-P In addition to copying the contents of the source file, the CP will also copy the modification time and access rights to the new file.
-R If the source file given is a directory file, the CP will recursively replicate all subdirectories and files in the directory. The destination file must be a directory name at this time.
-L do not copy, just link file.
It is to be explained that to prevent users from inadvertently using the CP command to destroy another file, such as a user-specified target file name already exists, with the CP command to copy files, the file will be overwritten by the Xinyuan file, it is recommended that users use the CP command to copy files, it is best to use the I option.
ps:copy or CP is not very clear. It seems that two of them are OK. Please pay attention.