bash script to run command 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
Example 3: how to run shell script
bash yourfile.sh