Bash Script Tutorial

 Lets begin this bash scripting tutorial with a simple "Hello World" script. Let's start with Learning the bash Shell: Unix Shell Programming

1. Hello World Bash Shell Script

Open vi

# declare STRING variable
STRING="Hello World"
#print variable on a screen
echo $STRING

escape Colon :wq  w:- save, q:- quit.

Navigate to a directory where your is located and make the file executable:

$ chmod +x 

Execute the Script.

$ ./ 


Post a Comment