run sh in terminal code example
Example 1: how to run shell script
chmod +x <fileName>
./fileName. # or use ->. bash fileName
Example 2: how to execute a bash script in terminal
$ chmod +x fileName
$ ./fileName
chmod +x <fileName>
./fileName. # or use ->. bash fileName
$ chmod +x fileName
$ ./fileName