ãcp, mvã³ãã³ãã¨copy, moveã³ãã³ãã®å¾®å¦ãªéãï¼å®ä¾ã¨ã¾ã¨ããã¨ä¼¼ããããªè©±ãLinux/Unixã³ãã³ãã¨DOS/Windowsã®ã³ãã³ãã«ããå帰çãªã³ãã¼ã
2ã¤ã®ãã£ã¬ã¯ã㪠origin/ 㨠target/ ãããã¨ãã¾ããorigin/ ã«ãããã¡ã¤ã«ãå ¨ã¦ãtarget/ ã®ä¸ã«å帰çã«ã³ãã¼ããã«ã¯ã次ã®ããã«ãã¾ããã$ãã¯Linux/Unixã®ããã³ãããã>ãã¯DOS/Windowsã®ããã³ããã ã¨ãã¾ãã
- $ cp --recursive origin/* target/
- >xcopy /y /s origin target\
ããã¯ã¡ãã£ã¨ãããããã¦ãcp ã®å¼æ°ã origin ã¨ã origin/ ã«ããã¨ãtarget/origin/ ãåºæ¥ã¦ãã¾ãã¾ããä¸æ¹ãWindowsã³ãã³ãxcopyã®ã¨ãã¯ãorigin ã origin\ ã«ããã¨ã¨ã©ã¼ã¨ãªãã¾ãï¼origin\* ã¯OKã§ãåãæå³ï¼ãã³ãã¼å ã®æå®ã§ã¯ããå°»ã®ã/ããã\ããæ°ã«ããå¿ è¦ã¯ããã¾ããã
ã³ãã¼ãããã£ã¤ã«ãç®è¦ã§ç¢ºèªããããªã次ã®ããã§ãã
- $ cp --verbose --recursive origin/* target/
- >xcopy /f /y /s origin target\
ã¿ã¤ã ã¹ã¿ã³ããæ°ãããã¡ã¤ã«ã ããã³ãã¼ããããªãï¼
- $ cp --update --verbose --recursive origin/* target/
- >xcopy /d /f /y /s origin target\
--recursive ã /s ãä»ãã¦ãã空ã®ãã£ã¬ã¯ããªã¯ã³ãã¼ããã¾ãããWindowsã§ã¯ã/s ã®ä»£ããã« /e ãä»ããã¨ï¼ããã㯠/s /e ã¨ããã¨ï¼ç©ºã®ãã£ã¬ã¯ããªãã³ãã¼ï¼ã³ãã¼å ã«ä½æï¼ãã¾ãã
[追è¨]ãã¨ã®ãã¡ã¤ã«ã®å±æ§ãã§ããã ãå¿ å®ã«ã³ãã¼ããããªããxcopy ã§ã¯ /K /Oãcpã§ã¯-pãä»ããã»ããããã§ãã[/追è¨]