recursive chmod 755 code example
Example 1: how to give permission recursively in linux
chmod -R u=rwx,go=rx /tofile_path
Example 2: find change permissions to subdirectories
sudo find /var/www/html -type d -exec chmod 755 {} \;
chmod -R u=rwx,go=rx /tofile_path
sudo find /var/www/html -type d -exec chmod 755 {} \;