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

Lubricants

Lubricants:-                         Those substance which is applied between two moving or sliding surface in order to reduce the frictional resistance called lubricant. Function of Lubricant:-        I.             It reduce the frictional forces between two rubbing surfaces.     II.             It reduces the cost of maintenance of the machines and tools.   III.             It acts as a cleaning agent to wash off the solid carbon.   IV.             It acts as a seal and prevents the entry of moisture i.e leakage of gases under high pressure.     V.    ...

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