how to make .sh file executable linux code example
Example 1: make shell script executable
chmod +x filename.sh
Example 2: how to run shell script
chmod +x <fileName>
./fileName. # or use ->. bash fileName
chmod +x filename.sh
chmod +x <fileName>
./fileName. # or use ->. bash fileName