Copy from cp
Copy from rsync
First screen: Why does cp make a folder from a link? How to fix it with cp?
The second screen: rsync copied as I expected. Should I always use rsync instead of cp?
First screen: Why does cp make a folder from a link? How to fix it with cp?
The second screen: rsync copied as I expected. Should I always use rsync instead of cp?
Please correct the question so that it describes the specific problem with sufficient detail to determine the appropriate answer. Do not ask a few questions at once. See “How to ask a good question?” For clarification. If the question can be reformulated according to the rules set out in the certificate , edit it .
Source: https://ru.stackoverflow.com/questions/552908/
All Articles
cptable of contents (and not its contents, which you apparently wanted (cp -R test1/link_to_1/* test2/link_to_1)), so you copied it (recursively) totest2/1. - avp pmcp -RL ... ...(-L causes cp to "open links"). In your case ofcp -R ... ...it was the symbolic linklink_to_1that pointed to the name1should be copied totest2/11. Check again. - avpcp -R test1/link_to_1 test2/link_to_1/- link is copied;cp -R test1/link_to_1/ test2/link_to_1/- the link turns into a folder;cp -R test1/link_to_1/* test2/link_to_1/- source content is copied; - Sergey