You are on page 1of 12

MORNTNG SHIFT

DLLNO 19BSCso S u b j e c t c o d e : - B C S - 2 0 6

Name-Linux Shet0 PsADg91am


ladtors Name - Krm Antili Yaday
faae No.- ) Date-
21-0 6 -202

CSwiailator's Name t- Anad Yadoa


Semegte9t
END TERM EXAM
Anbuwes18-2-(B
aa s
STt
îS
S h e l ) Soupt - A shell soupt
am
compudesupio
Commands in
O
Unix
shellushich da a
hat uL Sun by the

Command line imtepHetei


has c.omments
A Shel seu pt us uallL
h a desodbe the stepS
The
T he diLesjend opesiations pesyor
me d b
Shell sipts aHe o am execution,
Ex-fle manipulation ane text pointing.
A b a s h lor she11) seoupt i s basica lly a
q 1 am thoct a0lbuDS he uges to fte94a.ct

with he UNIx/ENUX inuxustem bu wi-ma


executable shell Commands in a imple e x t

tile
) Bousune She
Tybes o} Shells-
CO) C Shell

Example oShell soit A soupt demo.sh


1s Coeaded tor his exam ble
MOMimg6hG
Koll me' 19BSC sot dulictcoce +Bcs-e206
Ogec ome inux and shell oamm
Jnoilgolor's mome r Km Anl Yaday
Jage ne' - (2 Dale + 21-06-2021

##/bin/ bash
zip
Pind
echo command to C94eae, extra.ct
Heie
Hesie, qzip S a

oY v i e u files
to CHeaate extsact zi1P
z i p us a ommand ,

pile, command that i helpu to keasich


easicch

f i n d fs a

le
echo fs a Command displaus a lime o text .

Acvantages ok Shel1 Scupt


the haequotlyesonmed opesH-
To automate
otions
&. To Tun sequence
Commandls as a single
Command.

3 Easy t o e.
Unix-i Ke
(3t c a n be executed fn any,
Portable
kiatem usith out anuy modiicadion8).
obestating
5. Quick Sttasdt
69ntetactive debugging
Wodtimg, shell Scoúpts ase much quickes.
Moming hiy
Rolno 98$Cso subjcct co-
Bcs-20 6

a m e - Lînux t Shell pao 21- rune -2o2l


Snailgalerb nome + a Km An0 Yacay
Fage mo-L3)
Disadvanttages ok Shell Sopt
.Slo execudion spee.d combas1 ed, t o an

Paoiaming, languages
R r m e u a þaDcesg laun ched e r almost ey e9u

shell command executeo.


and, eomplex task.
Not well suited or lasae
4. foone t o costly eso100L2 a eimgle mistake
Can change h e command tohich miaht be nasm

5. Poovide minimal odata stuucBue unlfke othe


Souptima lanquages, etc

Answe1%-3

C8)

A Syatem call is a wa
Sustem call
imrteHact witH he com
o o0qam8 to
Op-Hadimg ystem. A Combute9u poog9 a m
ushen I t makes a
makes a Syatem ca
to he opesiadtimq stem's Kesunel.
Vequesst
Syetem call oyides he sevices ok the
opesiading, austem to h e uge p9H0991am3

vfa Appication Po0 m m t e L a c e (APT).


AIl S30qHam8 needin9 9HegouHCeg must USe

System cals.
Moming ife
Roll ne 198scso &ubject code+ BCS-206

dubject mome - nux & Shell Dote 2-Jun


P o D g 1 a m m i n g D a l e 2 1 - J u n e - 2 0 2 1

Snoilgalors ome Krm Angi Yaday


Fageme'-4
Sesvices PDvided, b System calls
o c e s s toieatiom and m anagememt.
d Man memou , emanagement.
File Sytem
File Disector and
Access,
Tmanagoment.
.Device handlimq CI/O)
5. Porotection
etc.
6 Kin9,
Netwos

TubeS ok SugBem call- f r o c e sSs


Mamement

M a y h g a me n t

c o m n

u n ic a
Tpes
Hon
S y t e nc a l l

3nko
YDevicee
Maneement
mafron

M a u n t e n a nc e

ROL
hadmo0 The Se syshem
. PRocESS C ONT
such a s þao cess
calls deal wth poDce sses
etc.
CHeation, poDcess tes-unimadtion
. File Manaaement- Responstble kos h e tle manf
pulladiom such as CAe.aimg aile, seadim 9
he, witina mto a le etc
Movming hGo
s-206
Roll mo -|98Scs0 Suljolcool- 8c
uljeot mame -inux and sheilproqp1an m in}
Dali- 21-o6-2021

Jnoigilalos mame Kn An Yaca


oge me - C5)
ce
bonsible fer deVi
Sevice Managament R e s
device
Such a 7eadimng iom
manipulatjon eto.
device butkes
buesa, wting. înto
4. Tnozmation Maimt enance
and f t s
TheSe suatem calla hahdle fnormadi o n
ahd h e
tsanse1 blu the opesatinq syatem
uses 01aro.

5 . Cormmuunicaion
tesipoocess communi-
These as1e useul oT
and
alg0 deal with csieadîng,
Catiom. They
They
communicadhom conn ection.
deletim
Typeso Unux
Sustem CalIL Cexamp

Poocess c oMro1 ork C), exltL),


walt C
. f i l e manag emontt
obent) ,readI),
uite6), closelC
3.Deyic monaganMn
foctIL),vead C),
uOtel)

y.n hoTma-ion Maldnance> &etpidc) , alasunt),


slepl
Co mnuy cojon. pipe), shmaetl),
mapC)
Movning shft
Roll ne - 198 scSot buljcct codl BCs-206
dlijec mame Unux & shell poog1ammt
Dall 21- o6-2021
Snoigilaliors mame -Km Ani Yoda
Page ne-C6
Ansues A
- A þo c e s s ohi ch hag
Z0mbie po0cess
execudiom bud Still has eTt
inished the
table to sebort t o îts
fnhe paocess
Knouon as o zombje
s
pasHent paocess i

oce sS. A child pooC e s s alus a s kFrst


removed

becomes a ombie belore beima


he paocess table. The pasjendt poceg3
m
Stadus o h e child baocess
T e a d s t h e exit

he chil baocess et
ohi ch reabs okk
ornhe pDcess table.

Contoo) block
conto)
A proces
Paroc e s s shuctuIE e d by, Comb-
a
data
CPCB)fs
to &tose
stos e a 0 the
a00
Syaem
u t e obesatin
a oocesC. 3t
is also
about
Tnkomadiom
descsüptor.
when a
s
Kmouon a s a
povces
coieaded he opesiatimg, sys m
Dcecs ts Contol
con-tyol
c o T r e Cpomodma,
rocess
a
toWateD

block.
Motminq shfe
RoUne 198 Scso suljecl coce BC S- 206
ulgict rame y inux anel Shelt prog1ammi'ng
9noikgalo8 oome - Km Amili Yaday
Page ner C Dale21-o 6-2021

Poite
Poo cess State
Poo cesg Numbe9

foog1am C o L e

|Registo
Memo limits
Open le Fsts
c C . Accouhin
and Status Datta (fc8)
watimg
Srodre PcB neus,Veady3 runnima,
dead

Paoccss 9demtie9u-9n compuding,,


Hhe paocess
he
idenii9 (PID)is a mumbes ued by
Kesunels- such as tho3e ok
most opeadting Ausem
Onix, mac0S and windoue to unîqualuy idemtit
an active pocess.
ces
The poocess ID CPTD) may be uscd bu
system udilities.
t a i n n crtioms or

each poocesS unning. în uoindows fs ae


gned a unigue de cîmal mumbest ca0Qed the
PoocesS ID CÞ PID).
Morring sAi
ol me- 198 SCso+ &bjeclcode Bcs- 206
dulict mame nux and Shell Þoo91am mang

Smoilgolo'3 mome \Km An YacdaN Dale - 21-o6-2021

Page me -(8)
An3uoeS ' 6:

APL Function&- m e nux API s 4he

Resunel-uzest sba, ce API, ohich allouo


Poro 10ms în uLe9t s pac e to access Ssten

esoueeg and sesNic eg o he Linux kesunel.


t fs com OSed ouut ok Ahe S em c a
fntasace ok 4he nux Kesun e and he
Subrounes m 4he CNU C GboaL
t ado ovides commano.or
accecsmg Ahe l e slygtam and b e t o r
ming Hle opesadioms, uch as ouain9-
and deloting, t leS.

Uses o API unc-ioa asie -


Financial institudhions ike bank s ue poivate
APIS to tratK tmanage chc Ckim accounts,
coedit casnd and more.

. Retoi giantf- use APIs to com m unjcate


wfth CousíRS metuoos RS, enusunq pa thhages
OsLe pfthed up a 20 o ag poss}ble and
and
t s a thmg. t h e ay heyas moved
Moring sh
Wono'198scso1 sulyics ovde ; ecs-206
gcl moe inux t chel) paogpiam mÝn
rlgaleon's ome +Km Pmi Yada ol1-6-202
Jage ne' - A
.Web applicatons- Use AfTs to connect
use-lacfm 4ondt endz wtth al-tmb orstard
batk end unotiona +u and dat a

treamima, sesnfces- tke spotit and Net


to distbue comerd.
bx u e AIS
Automottive b Combanf e 2 1iKe Tesia 2end
via AfIS.
sotuwasie ubdae
Anauses-5.C8)
shas+ed mem osuu
U n i x Systerm-V
eadu31e 2ubpo-
s h a S i e d memosuwy is
o

încludima Umux , SunDs


sed. UNIX Sutem
by V,
solasues.
and
be exptdtly
askbor a n
One o c e s z mult
a k e tto be hosied
by he
O91e o , usina
oth es borocesses.
oHh Q mam omy
Ask hor a h a o d memo
he getusuned shasod
Ke and meromze
wonupsu T . Thisisbeuorrpad aiy
Sutem calQ chm9et C).
Memimg dh
Koll no - 198SC S o duljccs csole Bcs-2.06
dalject mame Unux & shelpo1anm.
Snorilgolos mome + Kn A Yada
Jage no' a) C1o) to.l-0b-2.02)
doe+91-06-202)

Poocess ao ces s 2

Shasied
MemoO

Genesial Seheme o usim ahas0d memou


fs 4he kollouofn a -
Fox a sesyves4 it should be stasched be jore
The Sevesi hould peso
any cltent,
any
t h e o l l o u sfng t a s k s -

Ishmget C)
a. S h m a t )

3. shmdt)
y. Shm CtIC)
or a momo
Ahasiod
Pro ceduse - A S K
Ata ch this shasud memoytO-the
fendt's addou98 Spa
U s e the meYmo
shasad meno Aegment s,i5
deta eh a
me ces3 a9

exi-t
Movming ahf
Rollne198SCSO dubjectcodk- BcS-2o6

Oeonome Lînux & Shell


o0gp1ammar
Snoelgoler8 mae t
Km Anili dal
ale-21-06- 2021

Ansuoesi- (A)

paocess utilHfes ocess ingdustie s asie

adt
tpically sewed by/ullt systema Ah
oovides he e cesgasuy engsgi to casso
caSS0
out day-to-clauchenaior
înolude
The most Cormm on utilfy austérma
Steam , electuudty t urdre91.

P s L?>ocess Stadu) disbla some pocess


addrtbudes
Knouo the ue13dlisplau
he uges
Who
Cusnrtlu loaed in
he sutm
whoamf. Shouo you the ouonesi okhis

account
W - Tell yo who fs loaafn fn olofna
wnadt
he înosmadion about *the
Fimges1 Dis plas
Movming shil?
Rolne' 198SCSo+ salbjictcode: Bcs-26 6
Xyeolamer linux and she1
þroammar
Snoidgolo 6 mome Km Anli Yadaf 1-66- 2021

Disk ui ltiesi- A disk uilt, fs a utilH


utiI

ussto peor
Pao1am h a t allous a

Vasf'bu unctioms on a combudest disK,


Su eh a disk pasitionim and logiea
Volume manaaement, a3 oel1 ab m uldi ple
dstive
Smalles task such a s chanan
lettes and oh e m ount points, remaining
disk kosmadtimn9
Volume3, disk sheckin9 and
an etc.
volume, fskeheckin
Manage
Ex-Syetem aotles, Netuwo
lauunchesus, enhivirus Sot
APP cadiom
Ffle mana etC.
unsie,

CommandA- Netw osking commands


NetworKma,
ae used ad he command podmpt to e t
metworK inoamodfom 1tke 4he IP addhess o
he stem, add9ieLB, metuu oyk dOuhe tra-
MAC
Ves-aed by opacket and the TP addoieis o he

BeoNeS în ushich
awebsite os URL s hosted.
NetwoTktng command3 asue Päng, Netstot
Hostmame, ARP, Rout e, SS, IP Tracesd.
NslooKub etc.

You might also like