Linux Order of CP detailed
Hey, another week has passed, how is everyone, in this week time, small series but also learned a lot of new knowledge.
linux CP command, here's CP but copy
650) this.width=650; "Width=" 417 "height=" 489 "title=" 22.jpg "style=" width:80px;height:115px; "alt=" Wkiol1lznb7bwdtnaaaob2vc308745.jpg-wh_50 "src=" https://s5.51cto.com/wyfs02/M01/9C/9D/ Wkiol1lznb7bwdtnaaaob2vc308745.jpg-wh_500x0-wm_3-wmp_4-s_1044491542.jpg "/> (Allow me to hooves a bit)
learning linux all know that in the course of our operation, we often use CP This command, like CP CP CP CP
(1) Source: A File destination: file does not exist.
The target file will be created and the contents of the source file will be populated in this target file. : 650) this.width=650; "title=" 1.png "alt=" Wkiom1lzn4fgaz_2aacpadhinny775.png "src=" https://s4.51cto.com/wyfs02/M00 /9c/9d/wkiom1lzn4fgaz_2aacpadhinny775.png "/>
( 2 ) Source: one file target: Exists and is a file
The contents of the source file will then be overwritten into the target file. :
650) this.width=650; "title=" 2.png "alt=" Wkiom1lzn5vaptnsaaa-yng_qik306.png "src=" https://s4.51cto.com/wyfs02/M00/ 9c/9d/wkiom1lzn5vaptnsaaa-yng_qik306.png "/>
It should be noted here: if it is a normal user operation, it is recommended to add - I. to avoid data loss. (If you do not add -i, it will be directly overwritten without any hint)
( 3 ) Source: one file target: Exists and is a directory
A new file with the same name as the source file will be created in this directory, and the contents of the source file will be populated into the new file. :
650) this.width=650; "title=" 3.png "alt=" Wkiol1lzn7hjzqkjaacqwblav0u837.png "src=" https://s5.51cto.com/wyfs02/M00/ 9c/9d/wkiol1lzn7hjzqkjaacqwblav0u837.png "/>
( 4 ) Source: Multiple Files target: Nonexistent or exists and is a file
then you will not be able to replicate :
650) this.width=650; "title=" 4.png "alt=" Wkiom1lzn8myfa6uaablcxqvmvy534.png "src=" https://s3.51cto.com/wyfs02/M01/ 9c/9d/wkiom1lzn8myfa6uaablcxqvmvy534.png "/>
( 5 ) Source: Multiple Files target: Exists and is a directory
A new file with the same name as the source file will be created in the target directory, and the contents of the source file will be copied to the new file. :
650) this.width=650; "title=" 5.png "alt=" Wkiol1lzn-bbsvg4aadn63pm5ug278.png "src=" https://s5.51cto.com/wyfs02/M01/ 9c/9d/wkiol1lzn-bbsvg4aadn63pm5ug278.png "/>
( 6 ) Source: Directory target: not present
A directory with the same name as the specified target will be created and all files in the source directory will be copied to that directory. :
650) this.width=650; "title=" 6.png "alt=" Wkiol1lzoagjjibaaadgxg518cy857.png "src=" https://s3.51cto.com/wyfs02/M01/ 9c/9d/wkiol1lzoagjjibaaadgxg518cy857.png "/>650" this.width=650; "title=" 6.1.png "alt=" Wkiom1lzockcwt7kaacobcrvhao242.png "src=" https://s4.51cto.com/wyfs02/M02/9C/9D/ Wkiom1lzockcwt7kaacobcrvhao242.png "/>
( 7 ) Source: Directory target: Exists and is a file
The error will be prompted because the directory cannot be copied to the file
:
650) this.width=650; "title=" 7.png "alt=" Wkiom1lzod6apcjwaabefcytwbm048.png "src=" https://s3.51cto.com/wyfs02/M02/ 9c/9d/wkiom1lzod6apcjwaabefcytwbm048.png "/>
( 8 ) Source: Directory target: Exists and is a directory
A new directory with the same name as the source directory will be created under the target, and the contents of the source directory will be copied to the new directory. :
650) this.width=650; "title=" 8.png "alt=" Wkiom1lzogodafm7aad93hpwsoo330.png "src=" https://s4.51cto.com/wyfs02/M00/ 9c/9d/wkiom1lzogodafm7aad93hpwsoo330.png "/>
Well, to this end today, the little girl, there is not well written place, please pass by the great God to forgive.
This article is from the "13007865" blog, please be sure to keep this source http://13017865.blog.51cto.com/13007865/1950056
CP details of Linux commands