You are on page 1of 7

Assignmnt-03

Midlom-2

Quo explaun make command.


bullol autnof
AnsThe mak command u a
te bat uled to ccmpilt and buuld ezecudablo
hon sounea d i . Iht nake utilty wcs
pogaanm
a

u l a scupt fhal specikio the


omakel&dith
depcndencus bl _SCunca les and thi Ccmomanol qcQunY
tobuild the execukabla
Whey qou un the *ma ke AComomand.
9acada the makot1la_and detomuuw which til ntid
compihd and n uhal c d n . et then execude
the mecOSAa Ccmmands tu copAl and dh theSawks
l and lunk them into an_execLikabL_paogacm
Th ma ke-til typically conJuls o%a
o tulas each ol which deßnes a laaget dspendsncs.
and a scl ocommandi to be executod whn tanget
d s tn be aampilkd lgebilt. Tha makr tlility chatks
tho tinestamp ai the-Hl inuolutd to dsttnniu
Lhethn a taaget nads to bs nebuult cx nai

Maka n Ldok Wed n softuiaat


deuelopnmunt ia manasigtha bulld paaceishfaagc
pnjeda.RL allaus diuclops ka_auttanafi lhepaacc
sullding and teitusg thcin saftwa. Ond t
enaunu tht tho fina prajeck panduct is coiilltnt
Land hg tem emo'Ll Make capb ultd ter bulolI.
paamaml hHtn_in a uaitly etpaasaaniss
languagi3inclusig CCttJaua pythom ard

Mak llo suppats parullci euuldi


uhich mLanhal t4 can Ctnpele Dultpla Suumc
ute

yotax

e -fmakef1le ] [options 1 tlarjels


Option
u d s cmlune help and ecul th@i aptLond an
Cmcd yter compati bluty wth othen venl
mar
B--always-make:
unc cmcluticnalu mak all toe
+-f hle:
ule tilu as a ma tttila
19nart -erors
IGnm cUene 1n COmmand1 execal.
tuatmal i{l

Exomple:
Cacalea diarctcay Basant'ancd chanje dunsrda
to d .
Smkali Basant
scd Bas ont
IBasands
Inp yi Make-file
Cerkpchello :
echo Hello wald

Output amake
echa"Helia world
Aellowaz Ldl
.

fca thaabau autput ,wc opeacction itke


can Sceecho

ant to cuaplaus fho


IS_displayIrHe dantt
,eectuii thecchs t e s .
echo Cammand cnthe autput
wtt a Symbol
Inpuv Makeile

hello
echo Hello ea ld

Outpu make
Hello WGald

Another exapple
Input ui Makefile
Cacatung.fileg
@echaCacalins es
touch ile-1.33.ixt
lstfiles
@echo Lst flea
Is
Output make
Caeart1ngfiles
ile.3.Art
$make. ust.files
us fks
s
Makefileile2.txt le2.t
le-Axt
do yau meanlby package Manajernaman
and
explaoequntH uad Package manage

package. Manager s a Sattlwgc taal


that_oaudanadt the paaccii uAtalliig, Lpcdas,
gg.Chng andaemauig sat tuwa pacKajeuA

tpadutay e g -built saftuacpackayes fhat


ultni Can casil4 indtal and manage urtih iw
daualard
Cmmandl,unsicad o hauln to nanually dauanlacd
and install.each packase1nduduualiy
PacKaie manasni_canculãa handld
dpendencin,rbuh ani othe ehtusane pacaji
{bal a pcaticala packae depencl on ta3up
htn ycu instalt a packapc Lushg apackaje massa
t l l autmattcally daumlead nd unitall aa
cdeptndencL thal oXe acqund ta tha pcckaje
to aun,

-Soma popular package mang.ens fur dubpentnt os


unux
APT CAduanced Packaje Toaol) te Dcbian and
Lubuntu,YUM (Veilouwdos updat mactuhiid) fc Rd
had and certid jOnd Pachan fcr thch inur

macas
Honbu and MacPais

WIndar
Chocolaety. and Scaop
Sama tquontty wed Package-Manaaon
)APTC Aduanced Packase Tooll
Thu u a command ing
pacKaje managun ued by drbtan and Uburtu dunux
dutar bution 9 bnaun ta lts eako o s and
abilHyto handle commplax dependency 31 blo packaje
can install ,updatt and t matt packagtwith a
tc Simelt commanda.
2) YOMLYellowdos updatr Modihiun
hu a CommaLcl
un packaje anagcn uled by Red hat andCendos
unus dstibutom u s Knaum Ia is siabdidy and
SeCnuty and Can handle ccmpllk depCn dencysclallan
shp betwcen packaqes YoM uwCsapaluto*l to
manasE Sottuae packaz) and Can aiolu
dependoneis auto mat1cally
3)Pacman
lhyul Command-li packaje manaen uikd
by Pach unux u Enoum la is spaed ard Sinpliat
n d can hondliComplt depencleac atlotioa1shup betute:
packajeA. Paemap uAla packaje databcc thad
Condcun unhemation abaut auauabla_packagcg
and than dependoncy ,CanInstalLupdals and
cmopackaje with a tew suyels Command
Qus3 waik a shell scaipt ftr atad and prmnt elements of
Ccy-
#1bnlbash aay
3)
echo"Enter thc _elememtsat
Tead-a aay na
<cho
cho PintN the clemtnelso
echa saayl@

utput tote the elements ot aray


12 3 S
antis the clements ot anCLy
2 S

nathn way
11binlbash
cha Enter the sl2e of amay
eodS12e
echa Enkex the elements af orray
tor L in $leualecho o.expr si2e -" )
do
read oreuyLiJ
dane
echo Px1ot1ns the elements ot art
Ioriin $leual echa fo\expr $sne -12")
do
acho sanrauCil
done

Qua U a l e a shell SCaupt tu paunt and sum tist


o elomants of fibbona cu Senu1
An
#/bin/bash
ead -p HoLo much elements you want to.paIDt: Tumbr»
MumberO-4mumbrsl:1 Sum a -

echo"Punt1n9 Snumber elements ot Hbonacc


echo $numbcro echo $numbrzL

tor in sleual echo 1..expr_snumlkr 2


do
let numbcra $numbero +$numberl
Mumber0-numbcrl
Mumberl: fnumbcr 2
let sum-fsumt.$number2
echo $number2
done
"Sum of $number elements of ibonocc Seies
echo
= $Sum)

Outpud
Ho mmuch elements you want to pa1nt:20
Paintins 20 elements of aray.

2
3

2 S84
4181
Sumat 20 elemens at t1banacc emes.= IQ945

You might also like