Running Script
-
3. Executing Bash Shell Script
So to Execute the Hello-World Bash Script
First, we Need to give the Execution Permissions with:Copychmod +x ./mybashscript.sh
And to Run our little Bash Script simply run:
Copy./mybashscript.sh
You’ll be nicely greeted on Shell with something like:
CopySun Mar 10 10:31:26 PST 2020 Hello World! From the Bash Shell
Contents