# 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
# 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
chmod +x <fileName>
./fileName. # or use ->. bash fileName
$ ./script_name.sh
// if it need sudo permission the type:
$ sudo ./script_name.sh
include
#!/bin/bash (1st line inside yourfile.sh)
to run
./yourfile.sh
if you do not include that line
bash yourfile.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
# method 1
chmod +x <filename>
./<filename>
# method 2
sh <filename>.sh
# method 3 (Only for bash script)
bash <filename>.sh
include
#!/bin/bash
then in terminal
chmod +x <filename>
./<filename>
bash yourfile.sh