chmod to all files in directory code example
Example 1: all folder permissions terminal
sudo chmod -R -f 777 /path/to/your/file/or/directory
Example 2: chmod 777 command in linux
chmod -R 777 your_directory_name
sudo chmod -R -f 777 /path/to/your/file/or/directory
chmod -R 777 your_directory_name