chmod to subfolders code example
Example 1: chmod folder recursive
chmod -R MODE DIRECTORY
#Example
chmod -R 755 /var/www/html
Example 2: change the permissions of a folder in linux
sudo chmod -R 757 <file>
chmod -R MODE DIRECTORY
#Example
chmod -R 755 /var/www/html
sudo chmod -R 757 <file>