首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 其他教程 > 操作系统 >

cp下令复制目录的注意事项

2012-09-29 
cp命令复制目录的注意事项cp递归复制目录?cp -r? source? target?1. 若target是不存在的目录,则建立target

cp命令复制目录的注意事项

cp递归复制目录

?

cp -r? source? target

?

1. 若target是不存在的目录,则建立target目录,并将source目录下所有内容复制到target目录中

2. 若target已经存在,则表示将source目录本身复制到target目录下,即产生target/source样式的目录

?

那么,target已经存在,将source中的内容(而不是source目录本身)复制到taget中,怎么办?

?

cp -r source/* target

?

特作以标记。

热点排行