bash when do you need to make a script executable 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