Linux Getting Started basic command-CP

Source: Internet
Author: User

Linux Getting Started basic command-CP
The CP format has the following types of

650) this.width=650; "Src=" http://upload-images.jianshu.io/upload_images/6144185-07062e96ab7a7b84?imageMogr2/ auto-orient/strip%7cimageview2/2/w/1240 "style=" Border:0px;vertical-align:middle;height:auto; "alt=" 1240 "/>

650) this.width=650; "Src=" http://upload-images.jianshu.io/upload_images/6144185-8440d70ee16cb3ae?imageMogr2/ auto-orient/strip%7cimageview2/2/w/1240 "style=" Border:0px;vertical-align:middle;height:auto; "alt=" 1240 "/>

650) this.width=650; "Src=" http://upload-images.jianshu.io/upload_images/6144185-970b965f4ee1a48d?imageMogr2/ auto-orient/strip%7cimageview2/2/w/1240 "style=" Border:0px;vertical-align:middle;height:auto; "alt=" 1240 "/>

650) this.width=650; "Src=" http://upload-images.jianshu.io/upload_images/6144185-a62a2167be10d01c?imageMogr2/ auto-orient/strip%7cimageview2/2/w/1240 "style=" Border:0px;vertical-align:middle;height:auto; "alt=" 1240 "/>


A1, if source is a file, the destination file does not exist, when the source is copied to another file that does not exist in the current directory (this file will be created) such as the following example is to copy the issue to the ABC file, but the current directory app does not exist in the ABC file, The ABC file is automatically generated when the copy is made, and of course the two files are the same as the names of the different sizes:

650) this.width=650; "Src=" http://upload-images.jianshu.io/upload_images/6144185-2603dd06c0383731?imageMogr2/ auto-orient/strip%7cimageview2/2/w/1240 "style=" Border:0px;vertical-align:middle;height:auto; "alt=" 1240 "/>


A2, if the above command to execute again, originally ABC this file is already have content, if again to execute, then the content in issue will overwrite the original ABC content (below the red Arrow refers to the position if you enter Y, then will overwrite the content of ABC)

650) this.width=650; "Src=" http://upload-images.jianshu.io/upload_images/6144185-2db612b5209bb369?imageMogr2/ auto-orient/strip%7cimageview2/2/w/1240 "style=" Border:0px;vertical-align:middle;height:auto; "alt=" 1240 "/>


A3, if source is a file, and the target is an existing folder such as the following example issue content will be copied to the TMP directory (remember that the TMP directory, not the TMP directory) will also save the original name issue (yellow arrow refers to)

650) this.width=650; "Src=" http://upload-images.jianshu.io/upload_images/6144185-2b3676416694ae13?imageMogr2/ auto-orient/strip%7cimageview2/2/w/1240 "style=" Border:0px;vertical-align:middle;height:auto; "alt=" 1240 "/>


B1, if the source is more than one file, the target is a file or directory but does not exist for example, the following example will issue file and BASHRC two files copied to the original Wjcxj file does not exist, this situation is not allowed to replicate, if there is wjcxj this file, is not allowed, the target must be a folder

650) this.width=650; "Src=" http://upload-images.jianshu.io/upload_images/6144185-ab4a088a60eeebed?imageMogr2/ auto-orient/strip%7cimageview2/2/w/1240 "style=" Border:0px;vertical-align:middle;height:auto; "alt=" 1240 "/>


B2, if the source is multiple files, the target is a folder, this is allowed to replicate, such as the following example, etc and BASHRC these two files will be copied to the Dir directory

650) this.width=650; "Src=" http://upload-images.jianshu.io/upload_images/6144185-bfe842a2de7c5053?imageMogr2/ auto-orient/strip%7cimageview2/2/w/1240 "style=" Border:0px;vertical-align:middle;height:auto; "alt=" 1240 "/>


C1, source is one or more folders, the target is non-existent (c is not existing, automatically created after copying) For example, if the following command is executed again, then boot will be a subdirectory of C

650) this.width=650; "Src=" http://upload-images.jianshu.io/upload_images/6144185-215a1120a74cec9a?imageMogr2/ auto-orient/strip%7cimageview2/2/w/1240 "style=" Border:0px;vertical-align:middle;height:auto; "alt=" 1240 "/>


Copy etc and change the name to Backetc,-v to see the process:

650) this.width=650; "Src=" http://upload-images.jianshu.io/upload_images/6144185-4add324c70e851d2?imageMogr2/ auto-orient/strip%7cimageview2/2/w/1240 "style=" Border:0px;vertical-align:middle;height:auto; "alt=" 1240 "/>


This article is from the "12922045" blog, please be sure to keep this source http://12932045.blog.51cto.com/12922045/1930726

Linux Getting Started basic 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.