假设我们要把所在目录下的所有目录的权限递归设置为755,我们可以这样写
1、 find -type d -exec chmod 755 {} \;    (这句的句末有分号)
假如我们要把所在目录下的所有文件权限递归地改成644:
 1、 find -not -type d -exec chmod 644 {} \;

Leave a Reply