How to copy directories into a directory using install in bash?

Assume the nested directories foo/bar and a empty directory dest . I would like to call something like install foo dest such that dest contains the directory foo/bar .

I have tried the following:

install foo dest => install: omitting directory "foo"

install -d foo dest => nothing happens


你想用cp -r来代替:

cp -r foo dest
链接地址: http://www.djcxy.com/p/16314.html

上一篇: 访问一个Jquery选择器作为对象属性,意想不到的结果

下一篇: 如何将目录复制到使用bash安装的目录中?