how to give permission recursively in linux

C++
-R, --recursive

chmod -R 755 /path/to/directorychmod -R u=rwx,go=rx /tofile_path
find . -name "*.sh" -exec chmod +x {} \;sudo find /var/www/html -type d -exec chmod 755 {} \;
linux folder
Source

Also in C++: