$ cd <the-target-directory>

Files

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

Directories

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