change file read write permissions linux code example
Example 1: how to change permissions on a file in linux
sudo chmod -R ugo+rwx /file/path
Example 2: change permissions for specific file types linux
find . -name "*.sh" -exec chmod +x {} \;
sudo chmod -R ugo+rwx /file/path
find . -name "*.sh" -exec chmod +x {} \;