Chapter:1 Know about use of echo command
Introduction
Hello readers, MtroView team is very happy to announce that we are launching a free course to learn Linux commands & writing shell scripts.
The catch here is, no prerequisite is required to learn through this course. Anyone can learn from the course in a simple way with hands-on assignments. Don’t be scared & think about your educational background. Beat you are from any background, you can learn Linux & shell scripting following this course. We’ll hold your hand throughout the learning journey.
We need your consistency & dedication to complete the course within the time duration.
The MtroView team will share a detailed schedule for each topic including assignments. We will also evaluate the assignment & share the score with you.
Let’s start the learning journey…
First lets discuss about variable. In simple term variable is a storage which store some value in it. The value of a variable can be changed in a program when it runs. Actually, a variable is a small piece of memory that contain some value.
We will use the term variable in our course frequently. So please understand it clearly & read the above para if it is not clear. Knowing this term will help you to move forward and can able to grasp the next topics easily.
echo
To print anything in Linux/shell script, need to use echo command. In simple term, to display any thing in linux echo command is used. Sharing the example below:-
> echo “Hello MtroView”
Hello MtroView
> echo “You are learning Linux on MtroView platform”
You are learning Linux on MtroView platform
We can also print the value of a variable using echo. Sharing the example below:-
> check=”First Variable”
> echo “$check”
First Variable
In above code snippet, check is a variable & we are storing value in it i.e First Variable. To display the value of check variable echo command is used.