Skip to main content

Shall As A Command Processor


Shell As A Command Processor:

                  Whenever we log on to a Unix machine, we see a prompt. This prompt can be either $

and %. Infect a program is running every time we make a login to the system. This program is called as shell. Whenever we issue a command the shell acquires that information. Parses and rebuilds the command line and finally leaves the execution work to the kernel. The kernel handles all the hardware on behalf of these commands and all processes is the system. Every thing happens in the background keeping user ignorant of happening behind the scenes. The shell is generally in one of the three states namely waiting, sleeping and waking. The shell wakes up and perform the following.

(1)   It parse the command line and identifies each and every word in it and removes additional spaces if present.

(2)   Looks for special variables is the command line like $$ which generally begin with a $ symbol.

(3)   It then creates a simplified command line and passes it to the terminal for execution. The shell then gives to the waiting state until the command is executed and waits for its completion.

(4)   After the command is executed successful, the shell prompt reappears and shell returns to the waiting state waiting for the user to enter mew commands. This process can also be shown diagrammatically as:
Fig:(I).  Shall As A Command processor

Comments

Popular posts from this blog

Properties of Lubricants

Properties of Lubricants:- Lubricants have several properties, some important properties are given below:- 1.       Viscosity:                              It is the property of a liquid or a fluid by virtue of which it offers resistance to its own flow. If two layers of a liquid separated by a distance’s and moving with a relative velocity difference ‘v’ then force per unit area(f) required to maintain this velocity difference is given by-                                                 f=nv/d Where n is the coefficient of viscosity. Viscosity is the most important property of ...

Phase Rule

Phase Rule                     The phase rule is an important tool in the study of heterogeneous equilibrium. It relates the condition which mistake specified to describe the state of a system equilibrium. A substance can exist in various states depending on the external conditions. For example, water can exist in the form of a solid, liquid, and vapor. A change in the state of a substance is called phase transition. Equilibrium is a system in which phase transitions occur in addition to a chemical process is called phase equilibrium. Explanation of the Terms Involved in Phase Equilibrium or Terminology:- 1.       Phase (p):                               A phase is defined as the homogeneous parts of heterogeneous sys...

Laws Of Friction

Law Of Friction: (i)                 Anonton’s First Law:-     According to this Law, the friction between two solids is independent of the area of contact.   For example   a Bricks slides over a flat surface than the friction will be same whether it is sliding on its end or its side or its base, because the actual area of contact is always smaller than the apparent area. (ii)              Anonton’s Second Law:-   According to this Law, the friction force is proportional to the load exerted by one surface over the another . For example- If a brick is placed on the Top of the another brick the friction will be doubled and the another brick is placed on the second brick, than the friction will get trebled and so on.                 ...