How to run .sh file?

Give execute permission to your script:

chmod +x /path/to/yourscript.sh
And to run your script:

/path/to/yourscript.sh
Since . refers to the current directory: if yourscript.sh is in the current directory, you can simplify this to:

./yourscript.sh

Source: https://askubuntu.com/questions/38661/how-do-i-run-sh-files/38670

Leave a Reply

Your email address will not be published. Required fields are marked *