Simple Linux shell script ( for beginners)

Here I’m going to show you how to write a simple Linux shell script to print “Hello World” in the Linux command line.

Step 1 : To go to the home folder, type “cd /home” and press ‘Enter’ key.

Step 2 : To open a new file, type “vi” and press ‘Enter’ key.

Step 3 : Press ‘Insert’ key and write following code;

#clear for clear the screen
#echo for print Hello World
echo “Hello World”

Step 4 : Press ‘Esc’ key and type “:wq” and press ‘Enter’ key to save the file.

Step 5 : Now type “ls” to list the file and check the file was created.

Step 6 : Now type “chmod +x” and press ‘Enter’ key to make it as executable file.

Step 7 : Check the files again by typing “ls”. the file will be show in green color.

Step 8 : To run the shell script, type “./” and press ‘Enter’ key. This will print “Hello World” in your screen.

This is the simplest shell script that you can star get familiar with writing Linux shell scripts, and explore the advance shell scripts.


Brief introduction about Asterisk

Asterisk is a software that use to handle voice communications. It is created in 1999 by Mark Spencer of Digium.
Normally its installed as a server and attached telephones to make calls to one another, and to connect to other telephone services including the public switched telephone network (PSTN) and Voice over Internet Protocol (VoIP) services.
IP PBX systems, VoIP gateways and conference servers are same of application that we can develop using Asterisk. It is used by small businesses, large businesses, call centers, carriers and governments worldwide. I’m not going to describe about these application but if you are not familiar with this application, then you can simply search them on Wikipedia.
It is a free opensource software and originally design for Linux. But now Asterisk also runs on a variety of different operating systems including NetBSD, OpenBSD, FreeBSD, Mac OS X, and Solaris. And it is available for Microsoft Windows as AsteriskWin32. But still it is most stable on Linux and recommended OSs are Debian, Fedora, CentOS. And also other Linux OSs like Gentoo, SuSE, Mandrake and Slackware.
%d bloggers like this: