how to give read write permissions in linux code example
Example 1: linux full permission to folder
chmod 777 path/to/directory/
chmod 777 path/to/file
chmod -R 777 path/to/directory/
Example 2: debian give write permission
sudo chmod -R 757 /var/www
Example 3: how to set execute permission in linux
chmod +x script-name-here.sh
Example 4: how to set execute permission in linux
chmod -x script-name-here.sh
Example 5: change permissions for specific file types linux
find . -name "*.sh" -exec chmod +x {} \;