chmod -R
Apply permission changes recursively to a directory
chmod -R applies the change to a directory and everything inside it. chmod -R 755 /var/www sets every file and directory under /var/www to 755.
Example
$ chmod -R 750 /opt/app/
(all files and dirs now have 750)
Tip: Type it yourself in the terminal below - reading is not the same as doing.