Saturday, July 6, 2013

Introduction to shell script

Before going to start the shell script programming we mush know what is kernel? , what is shell?, what is process?, and what is redirection, pipe and filter?

What is kernel?
Kernel is heart of Linux OS. It manages resources in Linux OS. The resources means the facilities available in Linux. For example, facility to store the data,  print data on printer, memory and file management and etc.Kernel decides who will use this resource, for how long and when.

What is Linux Shell?
In early days of computing, instructions are provided using binary language, which is difficult for all of us to read and write. So, in Linux, there is a special program called Shell. Shell accepts our instruction or commands in English and translate it into computers native binary language.

What is Process?
Process is a kind of program or task carried out by our PC. For example, $ ls is the command to list files and folders in current directory. It a kind of process. A process is a program to perform some job.

What is Redirection?
Mostly all commands gives output on screen or takes input from keyboard, but in Linux it is possible to send output to file or to read from file. This is called redirection.

For example,