Running shell script

Before you run any shell script, you need to make sure that user has permissions to run the script. If permissions are not there, you need to modify the file permissions first and then you can execute the sript. To make the script executable by everyone, you can use below command.

chmod +x myscript.sh
To make the script executable by owner user, you can use below command.
chmod u+x myscript.sh
Then you can exeucte below command to run the script.
./myscript.sh

Youtube | Facebook | Twitter | Website Home | Online Grocery Shopping Brisbane