chmod for folders and subfolders code example
Example 1: chmod recursive
-R, --recursive
chmod -R 755 /path/to/directory
Example 2: change the permissions of a folder in linux
sudo chmod -R 757 <file>
-R, --recursive
chmod -R 755 /path/to/directory
sudo chmod -R 757 <file>