chmod only directory or files recursively

Simple command to chmod recursively.

Examples

For files :

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

For directories :

find . -type d -exec chmod 755 {} \;