批量修改目录下的文件夹以及文件属性

find . -type d -exec chmod 500 {} ;
find .  -type f -exec chmod 400 {} ;

  

原文地址:https://www.cnblogs.com/lixinliang/p/10438253.html