Linux批量修改符合某一条件文件权限

#Linux find chmod

Change the permission of files with 665 permission under /tmp/mydir to 664:

find /tmp/mydir -type f -perm 665 -print -exec chmod 664 {} \;

Change the permission of directories with 2775 permission under /tmp/mydir to 777:

find /tmp/mydir -type d -perm 2775 -print -exec chmod 777 {} \;

What a great command!