Wednesday, September 12, 2012

Shell and Shell Script

Shell

Shell is a command interpreter that executes commands reads from the keyboard or from a file. It is user program and not a part of kernel, but uses the system kernel to execute programs.It is a user program that is ASCII based, that allows the user to specify operations in a certain sequence.

Some aspects of shell
1. User interacts with the system using shell.
2. It is a full featured programming language, with variables, conditional statements, and the ability to execute other programs.
3. It allows you to easily create a new program with all of the privileges of any other UNIX program.

Shell script Shell script is series of commands written in plain text file. It is just like a batch file.
Whenever we give command to shell through keyboard, it accepts command and executes them. But when we write command one by one then we can store this sequence of commands to text file and tell the shell to execute this file instead of entering command. This is called as shell script.

Use of Shell Script
1. Shell script is used for manipulation of text or files.
2. Useful to create our own commands.
3. To automate some task of day today life.
4. System Administration part can be also automated.
5. Creating simple application


No comments:

Copyright © Codingnodes,2014.All Rights Reserved.