Biggo.
9t AMuwnbor
Aim
e onov CoOmpilo ac progvam Sivo gec
Alomwik hm
Stop 1Shox
Comwanol
SEopa 0pon the by usirg ha
odlitor gedit
Sopa Opon lo. tovmira) Alb + ClyFT
oFOp Evter e tprognom ard gve cu flarog
Shop 5 class ha ooli-oY
CDmmono
Shep6 Compila Fhe prorom ugir9
gec filarowd. . C OY filarao.
tulirg h e Commar
Shop7 Run lo ogranm
filopura
SEop 0.xib
Rasult
The abovo. Progyeym toas 6.2 e c o o
x D;60
Jodo 26]0212 CpRO RAm FACTORRAL
Aim:
T0 enor CProoranm irg
cund Comptlo.
cc
Alg0T hm
SFop 1: Sperk A1E+CEY]+T
Eorminal
Stop9 Opon Fhe
by wIng tha.
Shop 3 Opan ho d i o Y
Commad geolit
onod Sev Os
aph Enar C pYoorom
lorouma..C
Stops closo Eha adikoor
COmround
Comprla h prooram wiro
Shopb
Go fl.rama. COr filano
SEop 7: Puunhoprogre Uig h
COmmarnd,\ filO.roma
Sop8 Exib.
Ra. 3ult
Tho abova pYogrCum wOUs Oxo Cuied
Saccossfully
ExNO3
Linux Command
s3.a1
Aim Commcnds
A Cyoato Linu
Ce. olu vo
pro
Commands Description
t o the List
used to displau
Is 1s
droctDY 'OS.
olire CEorfeson
sodto Croa te
MKoliy mxdiy myolir l s
Bflo
Brlo Systom.
usod Eo o hmova emp
YmoliY
divactOY mdiy mydir1s
u sed Fo change woiking
cd 3cd I yea
disectoY .
cdgo back one lovel.
Show the paTh op uDTking
pud
diectories. pud.
he
fincl u seoltO got the l e in
CurTonkoY dtec tory 3 ind 1ile.
Sho the olisk Usage.
du d u IDosktop t yea
Cat Con caEona tOS the Conton C
8le to anothay C 1
CP COP
CoPy the Conkont ob one b
another le. cp 4le ile 1
YOmove tho ile TOm CLYYent
Ym
dlirec torios. $ m- pllo 1.
mv used to roname movo a slo or
di roc oYy. my myeli7 hewoli
Ob neO
Usod bo print a Counb
line words ard by is oY occh
inpu le. wc wolcome.
usad o get fn hoymation about
PS
all vunning prbcess. f ps- ag
Send a Signalko the Spocipled
kill .
pocesS Ov 9Youp f kill-
oxecut od Commands whon Systom
ba tch
lavel. PYermiE $ bat ch
2 pession print"
balsegula7
gep
glo lind cnd line
pYO Cess toxt line by
Specipfad patten.
which match
912P-wpYint" welcome
write Osod o write a messaga bo
1ho othor uso
mai help.
Ca Sudont. Subj weltome
Computoy lab. CtrlfD
mal
ser sand m a u co Local
ko
Systom USOT
$writo Studont pes/a.
wal Sond oa m e s s a Ge to v o y o n e
Loggad in.
wall--V-- vorsion welcome.
Coomande DescyfpEion
date
USeo to olisplay dato. dato
ind who s on the
who Usad to
Systcm. who
uhoomi pri'nt the Usevnam dssocia tod
wth the Curont ohbocbiva. user
Td. whoami
man Usoo ko gormat and display he
man pages. The man pages QTe
USua manners hat s b
de bulo in Linax distribation
man As.
Cal Displau he CurYOnt month
Calonde Cal-t
Ccho display a line oh toxtt Stving
On stan dayo Output
2cho egod lnis\n Jove
bc be fs arbinayy p vacYsion
an
Aanguag0 or porborming
Colculation de liva YeSulE.
be
iS
PIpe The Out pu o6
Tha Commaund
usfng ThS
hcd into Jess. B
mak
can
Jess frick
doss you
Commands have Scoling Oub pue
ls-1E
The op to Linos Ot
btoY To Soc
fle
$haaod l e nam
Ex No5 Fibenaccf Sevfos
19.3.2
Afm
o onter and Conmpile a c program using
gcc
Algovith
Stop 1 Staxt
top 0pon the Clvl+ T
ingl AItt
Stop 3 Opon tho Ocditor 1he
by using Command
gedlt
Stop 4Entoy Tho C progvam and Sava as file namQc
Stop s: close Tho aditor
S.top 6 Compilo Tho progyam
using Command
9cc ilaname. c.
#lo nam@ 0Y
Stop 7 Run Tho. program
using tha Commard
6Ploname.
Stop8: Exft
Conclusion
Thus tho program has beocn
s0xeuted Sucocshully