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