chmod folder recursive 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>
Example 3: how to give permission recursively in linux
chmod -R u=rwx,go=rx /tofile_path
Example 4: change permissions for specific file types linux
find . -name "*.sh" -exec chmod +x {} \;