run a bash .sh script with sh in terminal code example
Example 1: how to execute a bash script in terminal
$ chmod +x fileName
$ ./fileName
Example 2: run sh file
sh yourfile.sh
$ chmod +x fileName
$ ./fileName
sh yourfile.sh