Understand Linux Shell and Basic Shell Scripting Language Tips – Part I

If you have any questions or problems regarding this article and want help within 24 Hours? Ask Now

Support TecMint: Did you find this tutorial helpful?. Please help to keep it alive by donating. Every cent counts! - Donate Now

Avishek Kumar

I am a major in computer science, love to research nix. I love to write codes and scripts, review distros, experiment Foss Technologies, write technical articles, Hack, of course Ethically. I am working as System Administrator (nix) for a NGO.

Your name can also be listed here. Got a tip? Submit it here to become an TecMint author.

Receive Your Free Complimentary eBook NOW! -

Download Free Linux eBooks

Advanced Bash-Scripting Guide
Linux Bible
A Newbie's Getting Started Guide to Linux
Introduction to Linux - A Hands on Guide

You may also like...

74 Responses

  1. Yogesh says:

    Thanks Avishek for the interesting article, really got me involved. Simple yet effective.
    Will follow your posts without fail.

  2. Satish Borkar says:

    I have just started the RHEL7 training.I found lots of useful information from this website
    It helping me lot. Thanks for sharing knowledge.

    Satish Borkar

  3. Laxman says:

    Hi Avishek,

    Thanks for a such information.
    I will wait for next part also…

  4. Vijaya says:

    Nice artical for the shell scripting beginners.

  5. sashank says:

    a good to start articles for beginners like me.

  6. Victor1 says:

    I was confused about the first script that you have in this post why you have to read the variables as ‘a’ or ‘b’ and not ‘$a’ but when you output them you write the $ symbol next to them. I think there should be more explanation about this.

    Also, another thing that I noticed is that in the first script: you have this:
    echo “Hello $USER”
    echo “Hey i am” $USER “and will be telling you about the current processes”

    why in the first echo you surround $USER with double quotes and not in the second echo?

    Why in the third script you have lines ending with ; and some of them that don’t like:

    echo “Thanks Mr./Mrs. $a $b for telling us your name”;
    echo “*******************”

    Thank you

    Great website and great tutorial by the way.

    • Avishek Kumar says:

      The first variable is stored in a and the later in b,
      we can use the variable the way we want.

      read a will wait for the user to get input and will store in the variable a. Similar is the condition with variable b, in the above post.

  7. Hi,

    Thanks for this beginners tutorial :) I will continue to explore your blog.


  8. vicdeveloper says:


    Thanks for an amazing tutorial dude.

Leave a Reply

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

Join Over 85000+ Linux Users
  1. 53,676
  2. 2,838
  3. 20,639

Enter your email to get latest Linux Howto's