UNIX Module 1
UNIX Module 1
PRoGRAMM)NG
Module
1. txplain architehue
neat
the
diaqram.
UNIX
opatg
(OR)
Explain he kenel and shl labbnship
operatig Ayaton wia diagram(1om).
Oher
soLhent Shell
Shell
Sholl
Kecnel
Pardware ogt)
ta B r o
Tert
procKOU.
Datos
The kernel i Core
when, tae ayptem là bootesd
lommntcafs dieety cwth the
haroware.
the hajdwar
User progra trat need to acces
e seYices the kernl, usti'cs pex7orms m
the gos on
the usu's
use's
bohaly memony, Bheolul
" The kernel managu He system's
elr pioribes peatome
proes, da etolu their
Other taski.
Shell:
The shel outeu oayt the opeyahy yoten
shich handes he tapabili hy ¢tanalatn
Commands mtachon. (an be done . a
command inter pebr.
The hel 0R the întrlate blw te
kernel.
Even hough hini is ony one herre nnhg
the Ayrte ytheu Could be ral shells
acton
Faci liy'
UNIX hel is also
pregrammtg languag a
" The
wich wo deigned tos a prorammi and not
(asual. end se.
necesay shgredient ike Control
Jt hou all the
and vonabli that establish
uehureh loops
powwf
These feabs are wjed i to duign dhell scpts
cannoke UNIX command
which. oe. proqram hat
Docimiriahon
tattn cs sornetmes wneeren but at mot
UNr documen
eo
The pnncepal outtine hy taey aiaulabli
man' Command whih emain. the
rene fororimand and that onjrg1rato":
tes
Interna nd Extenal
3. Compare
UNIX opu abng sysm oth etampu. (6m):
)Extenal Commands:
Extrnaleomandyi are hose commgn Hot
houvigan andepenent aten q.
ere These comnandeare etecks ey are
1 he lreetones speefied, by.PATH.
Most commands an'uterndilin nawe k
Su, Mo be Th R a
11 2 3 4
12 15 16 19 133,
13 14
22: 2,3 24 .2y
26 2428 ,4 30 3)
date
The date comnand 'n unet to diglas he cuent
dat Lith [hous the dat and bme fo . the
neauest sRcoRd
4econd,
$. date
31 (6: 22: 40 LST 20os.
Outut Wed hug
() OneCan fhe month smg komat tln
print.only
dat +7 m
external ommandwhoch aL
The pm i ano thr
all sequini ied hy cho, kut
aceepba uape inst a newlne
t olod not
wnless the ln automahcjomattel y
ses
Thei pin7 aleo
th cAanguage
whent shell
) paasud.
command o ed to change
The pa t the acCont eloes not ha
know
possw
paswt hos that alieady
'to otes
butput: j kumar
pass wcdl: changng
changng pasod
wad: *****
Enr loqin pas
*********
New p QBBod:
Reentea ne pasud.
suceshuly
passud (ySTEM: passu kumo changed
who:
mantaing QUn account
who Logged tia the system.
The whe. command oisplay myoimatv
listmg the, wsus:
Ex: $utho
Output: 0ot
Coniole Aug 1 o:sI Co) avenscan)
4 b9:5G p n3.
kumar pts /o D210(p125. hoaiea.con
shasma pta/6
Explain e di7faent
contaa
Sol:
sequenu e charactess,
Jhealed
d'nded in to 3 catcgoties:
Fles Can
the most
An dinay diided: nto 3
Comnom
(a) Text Fe:
A txt
con tahs on y pphtable 'charakys
and the wrCan. otn
oh /hoe/kumar/ prog
also
tan clho ba Used i withot iany. aigument
pod
dp: hoe kumad /qrog
el: homeJkumas
lectohil to be e ated.
unc cuslent
dihietory path. is seatd
A
mhdis pateh.
A numbu fubdie ehone eated
mkdis Command
mkdir patch dbs dac Three dëreconts created)
cod pro9
homlnor/ prog/data
Explain:the Aeati diagian
totlowmg bque' depctr a hea'y tomnuod (or)
S The
stuebure. o a sandard
G.1).
The entire. compisy , heo qoup!
veate emgoy
Jo the systern.
'requlasy. by the 7ile
var The wanable paat
Containd
imaily
,.are housed hert
many syrng Uitys
On.
difeent
home iiectoies.
Jocabon