Answers for "ubuntu run a shell script"

13

how to run shell script

chmod +x <fileName>
./fileName.  # or use ->. bash fileName
Posted by: Guest on April-25-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

ubuntu run a shell script

$ ./script_name.sh

// if it need sudo permission the type:
$ sudo ./script_name.sh
Posted by: Guest on March-18-2021
1

how to run shell script

# method 1
chmod +x <filename>
./<filename>

# method 2
sh <filename>.sh

# method 3 (Only for bash script)
bash <filename>.sh
Posted by: Guest on December-31-2020
0

how to run shell script

bash yourfile.sh
Posted by: Guest on December-05-2020

Code answers related to "ubuntu run a shell script"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language