Linux command-CP

Source: Internet
Author: User

Cp:copy ( copy )

Copy files and directories: copying a file or directory

Copy source to DEST, or multiple source (s) to DIRECTORY: Copy the origin to the destination when a source, the copy ' destination ' can be a file name (can not be the original file name, when not the original file name, belongs to the renaming). Multiple sources, the ' destination ' must be a directory at this time.

CP Options:

-P: (same as--preserve=mode,ownership,timestamps) maintain permissions, belong to the main group, time stamp unchanged

-r-r--recursive:copy Directories R


ecursively Directory content Recursive replication

-f:force forced replication, when you manually enter the command, you will also be prompted to confirm that the CP has a link to the-I (Prompt before overwrite) in the environment variable, but


The script that executes the task plan will not have this link.

Linux command-CP

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.