Saturday, May 24, 2008

What Shell Script is?

Hello friends in this post i am going to tell about the shell script,what
exactly shell script means and many other things about shell script.

As a computer programmer we definitely aware of the term Shell Script,what exactly shell script means. First of all before understanding what the shell script is, we must know what is shell. Actually in early days of computation instruction are provided using binary language, which is difficult for all of us, to read and write.So to overcome this problem a special program which is known as SHELL used in the operating systems. Shell accepts instructions or commands from you in English and pass it to the kernel if it is valid.

In other words we can also say that Shell is a user program or it's environment provided for user interaction.Shell is an command language interpreter that executes commands read from the standard input device (keyboard) or from a file.Now we come on to the shell script.Shell Script is series of command written in plain text file. It means you can store a sequence of n commands in the text file in the order in which you want to execute them.After entering all commands you can tell the shell to execute this text file instead of entering the commands. This text file is known as Shell Script.

Shell Script is almost similar to batch files in MS-DOS but shell scripts are more powerful then batch files.Now the main question that arises here why to use shell script, the answer to this problem is very simple by using shell script you can take input from user, file and output them on screen, also useful in to create your own commands, save lots of time,also help you in to automate some task of day today life and with the help of shell script system Administration part can be also automated.

No comments: