How to set chmod for a folder and all of its subfolders and files?


find . -type d -exec chmod -c 775 {} \;
find . -type f -exec chmod -c 664 {} \;