luinux how to make a file sh executable fromt erminal ? 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