linux batch modify file and folder permissions

E.g:Permissions for all directories under a recursive directory should be set to 755,Each directory can be modified,But this is too much trouble,Also write

find -type d -exec chmod 755 {} \;
same,All files in the directory permissions recursively into 644 may perform such:

find -type f -exec chmod 644 {} \;

Comments