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 ...

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.                 ...

Derivation of the Phase Rule

Derivation of the Phase Rule:                                        According to this rule, for any equilibrium thermodynamic system, the sum of the number of degrees of freedom(F) and the number of phases(P) are equal to the sum of number of independent component ‘C’ and the number of external factors n(T and P) affecting the physical state of the system.            F+P=C+n   Or ,     F+P= C+2        where ( n=2 )   Or ,    F= C-P+2    (Gibbs phase rule) Let us consider a heterogeneous system in equilibrium having C components (C 1 ,C 2 ,----C c ) distributed in P phase (P 1 , P 2 , ----P p ). The number of degree of freedom = Total number of variables   - ...