Answers for "how to execute a bash script in terminal"

13

how to run shell script

chmod +x <fileName>
./fileName.  # or use ->. bash fileName
Posted by: Guest on April-25-2020
4

how to execute a bash script in terminal

$ chmod +x fileName
$ ./fileName
Posted by: Guest on July-31-2020
2

how to run bash scripts

# Give the script file correct permssions $chmod 744 <name of scipt file e.g script.sh>
$ chmod 744 script.sh 

#now the file is ready to run run it with $ ./<name of scirpt file e.g. script.sh>
$ ./script.sh
Posted by: Guest on June-11-2021
0

start of .sh file

#!/bin/sh
Posted by: Guest on May-30-2020

Code answers related to "how to execute a bash script in terminal"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language