parameter
This option is typically used in a copying directory. It retains links, file attributes, and recursively copy directory, which is equal to the combined effect dpR options.
- When the link copy reservation d.
- f deletion target file already exists without prompting.
- Instead i and f option to overwrite the destination file before the user is prompted for confirmation. The target file will be overwritten when you answer y, it is an interactive copy.
- p cp except this time copy the contents of the source file, it will also modify time and access rights are also copied to the new file.
- R given source file if the file is a directory, then cp recursively copy all files and subdirectories under the directory. At this time, the target file must be a directory name.
- l do not make copies, only links to files.
1, copy the files to a folder
cp /home/downloads/xampp-linux-x64-7.3.6-0-installer.run /opt/
2, copy the folder to folder
cp -r /home/downloads/phpcms_v9_UTF8/install_package/ /opt/lampp/htdocs/