【发布时间】:2013-12-05 23:36:33
【问题描述】:
我想在网站的 100 个不同目录中放置 1 个名为“test1.html”的文件。
目录结构如下
/home/domain.com/public_html/ (每个目录的 domain.com 名称都会更改,所以我使用 * .
文件在这里:/root/test1.html
我已经尝试通过:cp test1.html /home/*/public_html/ 通过 root 帐户但给我
cp: omitting directory `/home/domain1.com/public_html/'
cp: omitting directory `/home/domain2.com/public_html/'
等等。
如何将一个文件放在所有域目录中?
它是 Centos 5.9
【问题讨论】: