Running Script
-
3. Executing Bash Shell Script
So to Execute the Hello-World Bash Script
First, we Need to give the Execution Permissions with:chmod +x ./mybashscript.sh
And to Run our little Bash Script simply run:
./mybashscript.sh
You’ll be nicely greeted on Shell with something like:
Sun Mar 10 10:31:26 PST 8 Hello World! From the Bash Shell
Contents
Tags: CentOS 8 Getting Started Shell Script, CentOS 8 Quick Start Shell Script, CentOS 8 Shell Script Getting Started, CentOS 8 Shell Script Quick Start, CentOS Getting Started Shell Script, CentOS Quick Start Shell Script, CentOS Shell Script Getting Started, CentOS Shell Script Quick Start, Getting Started Shell Script CentOS, Getting Started Shell Script CentOS 8, Quick Start Shell Script CentOS, Quick Start Shell Script CentOS 8