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

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

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

Additives For Lubricants

Additives For Lubricants There are lack of properties of single lubricating oil so the properties of lubricants may be improved by adding some specific suitable compounds, such type of compounds which are used to improve the properties of lubricants are known as additives for lubricants. Some important additives are listed below. (i)                  Extreme pressure additives:   These additives either get absorbed on the metal surface or react with the metal to form a layer having low shear strength on the metal surface and prevent wearing and tearing. They also protect them from welding and seizure under extreme pressure conditions. For example fatty ester, acids, organic chlorine compounds, metallic soaps etc. (ii)                Viscosity Index improves: The prevent the oil from thickening at low temperature and thin ...