My First Bash Shell Script

I am currently learning bash shell script. This is not a tutorial since I am completely zero on shell script. I am interested to bash script because I often read and use many shell script on Linux. Now, I want to create my first Bash Shell Script. This script will print “Hello World” on screen. Here is the code:

#Define String variable
TEXT=”Hello World”
#Print the Hello World on screen
echo $TEXT

Now close and save the script. And we must make the script executable.

chmod +x

Now testing time :)

dhani@dhani-ubuntu:~/Documents$ ./
Hello World


Leave a Reply

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