Answers for "linux execute sh"

5

how to run shell script in linux

# 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
2

ubuntu make sh file executable

chmod +x <fileName>
sudo ./<fileName>
Posted by: Guest on August-16-2020
13

how to run shell script

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

how to run a .sh file

./yourscript.sh
Posted by: Guest on November-14-2020
0

how to run shell script

include 
#!/bin/bash (1st line inside yourfile.sh)

to run
./yourfile.sh

if you do not include that line
bash yourfile.sh
Posted by: Guest on December-05-2020
0

linux execute sh

include 
#!/bin/bash

then in terminal
chmod +x <filename>
./<filename>
Posted by: Guest on June-29-2021

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language