Receive all updates via Facebook. Just Click the Like Button Below

First Shell Script

Open up your favorite text editor.
You can use any text editor to write the shell scripts.
Normally the shell scripts has the file extension .sh
In our example programs we will be saving the files with .sh extension.



The first line of every SHELL script is a commented line directed toward the interpreter.

Try the command: which bash
Use this location for your shell scripts.

Lets start with a simple script to print " Hello World "

echo "Hello World"

Save it as " ".
You will need to give execute permissions for your scripts.

$ chmod +x
$ chmod 755

Now how to run your script?
There are 3 different ways to run a shell script:
1. bash
2. sh
3. ./

Try all the above.
In our examples we will be using any of these options.


Related posts:

Advertise here

picture picture

Follow us


- Tech-Tutorials

Like us

About Techcuriosity

I am Telson, the webmaster of and through this site, I share my knowledge and curiosities in the Tech World.

What We Offer

  • What is ..?
  • How to ..?
  • Difference between ..?
  • How .. works?
  • Get in Touch
    UK : +44 77 33 890 678

    picture picture

    Our Partners

  • Website Design Dubai
  • SEO Link Exchange
  • picture