# . is the path to start the search find . -type f -exec chmod 644 {} ; find . -type d -exec chmod 755 {} ;