Sunday 10 November 2013

How to run .sh file in Ubuntu command prompt

Give execute permission to your script

Example:

chmod +x /path/to/yourscript.sh


And to run your script

Example:

bash /path/to/yourscript.sh

No comments:

Post a Comment