使用此命令,我可以将"img"中的所有文件和文件夹设置为0775:
chmod 775 -R /var/www/site.com/img/
但是我只想更改文件夹img中的文件吗;我该怎么办?并且只更改文件夹?
谢谢
好的,
以递归方式更改目录或文件权限
find /root/path -type d -print0 | xargs -0 chmod 755
find /root/path -type f -print0 | xargs -0 chmod 644