我需要为那些具有用户执行权限的文件/子目录设置组/其他执行权限(在目录中递归)。
我该怎么做?
您可以将
find
-perm
chmod
find /home/user/mydir -type f -perm -u+x -exec chmod go+x {} \; find /home/user/mydir -type d -perm -u+x -exec chmod go+x {} \;