linux - 发现:在 Ubuntu Server 18.4 中缺少 `-exec' 的参数
问题描述
我得到了一个命令的帮助,但它似乎不起作用。这是命令:
find /var/www/HernandezW/wordpress/ -type d -exec chmod 750 {}\;
shell 返回错误信息:
find: missing argument to `-exec'
如何修复它以安装 WordPress?
解决方案
尝试在之后添加空格{}
:
find /var/www/HernandezW/wordpress/ -type d -exec chmod 750 {} \;
推荐阅读
- python - 熊猫,了解数据框行为
- c - 如何修复核心转储?
- corda - Corda HSM - 支持 SoftHSM
- ffmpeg - 如何修复 FFmpeg 中的“数据包不匹配 -92141241 11 214124”错误?
- html - 如何在视图页面中使用 @Html.ActionLink 中的 count()?MVC
- mysql - 使用MYSQL递归函数显示日期范围内的所有数据
- node.js - 当node js在通过wifi连接到网络的机器上运行时无法从其他设备访问它
- python - C套接字间歇性地重置连接并且没有收到来自python请求的完整请求
- c++ - R - 带有 %dopar% 的 foreach 在工作人员完成后不会释放内存
- reactive-programming - Rx - 跟踪鼠标平移操作