give rights recursicle linux code example
Example 1: chmod recursive
-R, --recursive
chmod -R 755 /path/to/directory
Example 2: find change permissions to subdirectories
sudo find /var/www/html -type d -exec chmod 755 {} \;
-R, --recursive
chmod -R 755 /path/to/directory
sudo find /var/www/html -type d -exec chmod 755 {} \;