【发布时间】:2017-01-02 20:47:21
【问题描述】:
我正在运行命令sudo find /var/www/html -type d -exec chmod g+s {} \;
来自here
那里说“我们可以通过键入上述命令在 WordPress 安装中的每个目录上设置 setgid 位”。
问题是{} 和/ 是什么意思?
运行find --help 得到Usage: find [-H] [-L] [-P] [-Olevel] [-D help|tree|search|stat|rates|opt|exec|time] [path...] [expression]...
所以上面的标志似乎与[path...] [expression]有某种关系,但它们的含义并不清楚。
【问题讨论】:
-
你忘记了结尾的
;。
标签: linux bash shell gnu gnu-findutils