To change all the directories to 755 (-rwxr-xr-x):
find /var/html/htdocs -type d -exec chmod 755 {} \;
To change all the files to 644 (-rw-r–r–):
find /var/html/htdocs -type f -exec chmod 644 {} \;
To change all the directories to 755 (-rwxr-xr-x):
find /var/html/htdocs -type d -exec chmod 755 {} \;
To change all the files to 644 (-rw-r–r–):
find /var/html/htdocs -type f -exec chmod 644 {} \;