Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
使用此命令,我可以将“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