Monday 12 September 2011

The "Hello world"

Prerequisites: http://unixcookeries.blogspot.com/2011/09/terminal.html

Now that we are inside the terminal ready to explore the possibility of simple and powerful tool. Which gives you access to communicate with the Kernel the heart of U/Li NUX. Now lets start exploring it.

Some thing got to tell you before that the $or # or something is what you will be having before(I mean on the left side) of your cursor. That is where the command should be entered.  


Snippet 1.0


Now comes the hello world. Type the following command and press enter(ignore the $. The $ is the one which I will be appending in the beginning to show the command starts here).


$ echo Hello World
Hello World

Now lets look in detail about the echo command. The echo command is a command which echos(prints) a set of strings as its output.

The syntax is:

echo [options] [string1]

Options:
The options are some characters or commands which will modify the execution of the echo command from its default style.

String:
The string is the string that you want to print on the screen.

We will deal in detail about echo and its power in detail when we encounter the need of it.

Now what we all have to know is U/Li NUX has a terminal. In which you can enter command and get some job done. The echo is one of the commands which prints something as its output. It has some standard syntax and a standard format of output. It also has some options to change the way how it behaves.

No comments:

Post a Comment