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
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
ubuntu make sh file executable
chmod +x <fileName>
sudo ./<fileName>
how to run shell script
chmod +x <fileName>
./fileName. # or use ->. bash fileName
how to run a .sh file
./yourscript.sh
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
linux execute sh
include
#!/bin/bash
then in terminal
chmod +x <filename>
./<filename>
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us