Sobasically, allTopis a taskmanagerthatisincludedwithLennoxthatyoucanuseatthecommandline.
Nowitisimportant, understandwhen I showyouthedemonstrationtodaythat I willbeshowingyouthesimplethingsthatyoucouldbedoing.
A toptopisoneofthosepiecesofsoftwarethat's includedwithLennoxThatcanactuallygetcomplicated a ratherquickly, butmostpeopledon't reallyneedtoworryaboutallthosecomplicatedtasks.
Sowhat I'llbedoingis I wouldsimplygetbegivingyou a verysimpleoverviewofhowtousetopagain, tobeabletogoinandtobeabletolocateprocesses, toseehowmuchresourceisthey'reutilizingandthenbeabletoforcequitthoseprocessesifneedbe.
Tobeclear, thereis a lotmoretotop.
Butwhen I waslookingathowtoteachthisparticularpieceofsoftware, I thinkif I gotoodeep, thatwillconfusepeople.
Andsothat's nogoodforanyofus.
Sowiththat, let's goovertothecomputeronand I willshowyouhowtousetop.
And I'llshowyouwhyitissovaluablewhenyou'retryingtomaintainyourLennoxsystems.
Sohereweare, backatmy a bunchofserver.
So I havemybuntoserverrunningwithin a virtualmachineonvirtualbox.
TheCPUhasbeenutilizedonaverageover a 15 minutesband, soyoucanseetheoneminuteaverageinthefiveminuteaveraging 15 minuteaverage.
Why?
I sayagain, thisisoneofthosethings.
Get a littlebitwonkyisbecausethesenumbersit's alsodependentuponhowmanycoresyouhaveinyourCPOondsothisisoneofthosethatif, ifitseemslikeyoursystemisisrunningintoresourceconstraintsandyoucomeuphereandyouseethatthisisoneormaybeeventwosoitcanactuallyshowthatyou'retryingtousetoomanyresourceissoit's tryingtograbtoomuch a CPUprocess.
Ifthenumbersherearereallyhighagain, I willgointo a littlebitworseresearchonthis.
Take a lookatyourparticularsystemandthendoallthemathonthisbasicallymoreorlesswhenyou'relookingthesenumbershere, theyshouldbesignificantlylessthanone.
Causeagainthere's a mathwiththeirwith, withhowmanycoresyouhaveinyourprocessororsomeotherthingsthattofigureoutwhat's actuallygoingonfastthatdownhereweseetasks.
Sowehave 87 total.
Wehaveonerunning 48 sleepingsoonsoforth s soweseethepercentCPUutilization.
Esous, usisus.
That's foruser's.
SohowmuchoftheCPUisbeingusedforuser's.
Howmuchisbeingusedforsystemwouldcomedownhere.
Weseememory, Howmuchisfree?
Howmuchisused?
Soonandsoforth.
Sothisissomebasicinformationupherethatyoucouldtake a lookat.
Soagain, ifyouseethislongnumberhere, basically, whatthismeansisthatithas a gig.
Sothisisinkillobits.
Kilobytes.
Sothisisonegigofmemorythat I haveallocatedtothissystemthatwecomedownhereandthenwecanseeallofthedifferentprocessesandthethingsgoingonsowecanseetheprocess i d.
Sowhenwegotokill a processwereactuallyused, thatideasthatwewanttokillyoudesperately a processwewouldtypein 2603 Andthatwouldkilltheprocesspastthatyouseetheuser.
Yourprocessisthatwe'reseeingHere s sothat's a basicoverviewofwhatyou'regonnabelookingatwhenyou'relookingattopas a taskmanagerpastthis, uh, somesimplecommands, ifyouneedhelp, onlyhavetodoisyoutypeinages.
Andsoifwe'regoingtotrytokillApachetoforwhateverreason, wewanttobekilling 2198 Sousing V againshiftyJeff V thatallowsustolookattheparentChildrenprocesses.
Sooncewe'rehere, thefinalthingtoshowyouisbasicallyhowtokill a processsothattheyweregonnakillprocesstoonedyingeightdirectlyfromtop.
Inordertodothat, wewouldhitKaySolowercase K andthenit's askinguswhatprocesstokill.
If I had a dinnerrightnow, I wasjustgonnagetthisweirderroronNothingisgoingtohappen.
Sowhat I'm goingtodois I'm gonnahit Q.
So Q quitsmeoutoftop.
Clearandthenwhat I'lldois I'lldoSuedotop.
Sothisthisbringsusintothetopsoftware.
Butit's assuperuser, basicallyas a rootleveluser I hitEnterpassword 123456 Okay, sonowweareendtopthesamethingthatyousawbefore, butthewereinas a routeuser.
Fromhere, I candodecaycommand.
I typein 2198 becausethat's the P I D ofApacheandthen I canhitReturnenerAndnowApacheisdead.
Soifwescrollthroughhere, we'renotgonnabeabletosee a passionanywherebecauseitisnolongerrunningIfwedo.
Oh, youdo?
CommandequalshadtoWe'regoingtoseethatwegetnoresults, becauseobviously, a pantryisnolongerrunninghitequalagaintogetusbacktothefullscreen.
Andthatis a basicoverviewofhowtopworksas a taskmanageron a bun, too.
Sothat's a basicoverviewofhowtousetopas a taskmanagerwithintheLenox, a commandlineagainwithmanythingsandLennoxworld.
Youknow, topcando 1000 morethingsthan I showedyoutoday.