$ chmod 744 script.sh
#now the file is ready to run run it with $ ./<name of scirpt file e.g. script.sh>
$ ./script.sh
./filename.sh
You can run a shell script by specifying the shell:
bash script.sh
Or you can execute the shell script like this:
./script.sh