Linux chmod command for recursive files and directories separately
find . -type f -exec chmod 755 {} \; find . -type d -exec chmod 644 {} \;