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.

Friday 9 September 2011

The Terminal

Ok to learn Unix/Linux you should have access to something called the terminal which is like a note pad or like a command prompt in windows.... command prompt seems to be more appropriate....


In UBUNTU the Terminal is on accessories...
 

When you open the terminal you see something like this...


It will start from the home directory. Home directory is the default directory in which you are in I mean it is the directory from which Linux allows you to use. A directory is a collection of sub-directories and files. Technically in Linux a directory is also a file of type directory will deal with this later.

Now coming back to the terminal. Terminal is like a gate which allows you to interact with the hart of the OS the kernel. The kernel interacts with the hardware and the hardware, the terminal interacts with the kernel and you interact with the terminal.

Now this is the terminal. You can start interacting with it soon...