Sowhetheryou'remodifyingsomethinglikethegroupfilesforforpermissionsandusersandpermissionswithLennox, whetheryou'rechangingtheconfigurationfilewithanApacheormodifyingthePHPdot I and I filethingslikethat, you'regoingtobasicallyhavetoend a textfile.
AndtheLenoxworldwedon't dointuitiveintheLenoxworld, wedotextfiles, sobeingabletouse a texteditorisveryimportantNow.
Itshouldbeunderstoodthat I willbeshowingyoufolkshowtouseVimaltodayAndvimisoneoftheValeavailabletexteditorsoutthere.
Itistheonethat I prefer.
Itistheonethat I like.
Itistheonethat I thinkisrelativelyeasytouseandthereforethatistheone I amgoingtoteachyou.
Butofcourse, aboardthisisLennoxWorld.
There's always 1000 waystodoanything.
Andifthere's 1000 waystodosomethingandLennox, they'regonnahave a wholebunchofpeoplearguingaboutthebesttexteditorandwhyyoushoulduse X, y or Z, letmeexplainsomethingtoyouagain.
Formebeing a littlesimple.
Sysadmin.
I usedthetexteditortogoinandliterallymodifyingconfigurationfiles.
That's all I'm doingwiththesetexteditors.
Somebody's texteditorsare a verypowerful, andyoucoulddosomereallycool, sophisticatedthingsthat I neverdo.
So I'm gonnashowyouhowtogoin, modifyfilesbeingcreatetextfilesifyouneedtobeable, goinandfindconfigurations.
Ifyou'relookingforthings, so I'm goingtoshowyouhowtousethemasjust a verybasictexteditor.
Butdoyouunderstand?
IfyougooutandyoustarttalkingtosomeoldtimerwhodoesLennoxandyousayHeidihaslearnedbamforEli, thecomputerguy, they'reprobablygoingtogiveyou a wholebunchofcrab.
But, youknow, honestly, nomatterwhattexteditor I taughtyou, youbeginning a wholebunchofcrap, sojustkindofrollwithit.
I havethisrunning, ofcourse, onvirtualboxonmyMacbookpro.
Butforthem, whetheryou'rerunningthisinvirtualboxon a Macbookprowherethey'rerunningthisonvirtualboxonsomethingelseorwhetheryou'rerunningthison a physicalcomputer, everythingwillbethesame.
So I'm using a bunchof 18.4 pointthreehereifyou'reusingthemon a differentdistributionofLennox.
Vamos, vamos, vamosmamshouldhave.
Soitshouldbethesame.
Andifyou'rewatchingthis 10 yearsafter I haverecorded, thisvimshouldstillbethesame.
L s toseeifthere's anyfilesorfolderswithinthisfolderandwecanseethatthereisnot.
Sothefirstthingthatwe'regoingtodoiswe'reactuallygoingtocreate a file.
Weregoingcrazylittletestdot t x t Inordertodothat, allwedoisvimve I amDo a spaceandthenwhateverwantourfinalbecalled?
We'rejustnotcallthistestdot t x t Um, nowit's important, Understandthedot t x t doesn't reallymatter.
And a Lennoxworlddoesn't matterifit's there, itdoesn't matter, it's notthere.
I'm justputtingthat.
They'rejustformysake.
Soweknowwhatkindoffileitis.
S o dorememberunliketheWindowsworld, whenyou'redealingwith a commandlineinLennox, thatfinalthatdot t x t onthatSuffolk's doesn't matterwhatwedothemwithyoutestthat t X t and I hitinher.
Yeah, we'rein a newfilesowecanseedownhere.
Testout T X t newfile.
Andthisiswhatwegotiswegottago.
Wegottablinkingcursor.
Islamicsgot a blinkingcursor.
Soinordertodoanythingwiththisfile, what I needtodois I needtopresslowercase I That's whereinsertpress, lowercase I.
Andnowwecanseedownhereitsaysinsert.
Andonce I'vedonethat, I cannowdoHello, world, andthen I cangodown a few.
Isn't thiscool?
I couldgodownifyousaythisisanotherlie.
Andanyways, yougetthepointyougothroughanddoallofthesethingspastthis, thenif I wanttobeabletosavethefile, youwanttosavethefile, I couldjustsimplyhitescapesthatgetsusoutoftheinsertmode.
Andthenwhat I willdiois I willdocolonsoyoucanseedownhereyouseethecolon.
So I doCole.
Andinordertosaveandquitthisfinal, what I'lldois w thatisforright.
And Q isforwhichandsoyouwillsavebanquetthefileSonowwehavequitthefile, Ugoandtake a lookSowedocleardo l s andwecanseetestdot t x t e i duvemdotestdot t x t I goinandtherewego.
Andso, basically, asyoustartbuildingthatsouthas a productionserver, youwouldhavedifferentusersinthesegroups, andthenyoucouldassignpermissionsbasicallybasedoffofgroupsand a Lennoxworldagain, wewilldealwithallofthatkindofstufflater.
Andnowwhen I lookforBob, itshowsusthefirstinstanceofBobappear, andit's highlightedthatnowwhat I candoisthat I pressinnerandnowwecanseethatit's nowtheblinkingcursor.
Soonce I'vepressedenter, thenwhen I candoisif I presslowercasein, itwillgotothenextinstanceofBobinthefileAllright, sowecanseethat.
Andso, inordertodo a find, that's whatyouwoulddothenlet's say I findwhateveritis I'm lookingfor, is I Okay, Um, I needto I needtoremoveBobfromthisparticularwhatevergroup.
What I candoisatthispoint, I coulddo I.
So I typedin I andaswecanseedownherenowsays, Insertsodownhereit's answer.
I don't wanttodothatrightnow, though, because I don't wanttoscrewupthisparticularconfigurationfileso I couldgobackhereand I couldtypeinbobagainonthen I canescapeoutofthat.
Butthen I pressenterandonce I pressenter, then I cangoupsowecanseetheblinkingisnowupor I candolowercaseinand I couldgodownuppercaseandgoesuplowercaseanditgoesdownandthat's howyoudoit.
Hit Q onthenexclamationsaswellquitwithoutsavingbecausewedon't wannaactuallymodifyorcan't thisfileon?
Thereyougo.
That's that's reallyallthereistothebasicsofthem.
Yea, NowyouknowhowtousevimUh, editandmodify I andIIfilesandconfigurationfilesandallthatkindofstuffsoyoucangooutthereandyoucanhavefun.
I willwarnyou, becarefulagain, especiallywhenyou'remodifyingthedefaultconfigurationfiles.
AndLennox, ifyoudosomethingstupid, ifyoumake a modificationthatyou'renotsupposedtomesswith, basicallyyoucanhaveyourentireoperatingsystemcrashandnotberecoverable.
Sodogenuinelybecarefulwiththatagain, sinceit's textfilesoneofthosethingslikeespeciallyifyoucomefromtheWindowsworldusedtodealwiththeregistryorwhateverlooking, lookingat a textfile, it's reallyeasy.
Look, a textfile.
It's notreallythatbig a deal.
I caneditthis.
I canmodifythis.
It's notreallygonnacausemeanyproblemsif I dosomethingstupid.
But I didnotwanttooverloadyouwiththattypeofinformationbecausethenpeoplestartgettingconfusedandthentheywanttogiveupandgobefloor.
So I justwanttoshowyouhowtocreate a textfile, usingthemhowtoedit a textfile, usingthemtomakesurethatyoureallyunderstandthatthecapitalizationandallthatmatterswiththemandthenhowtodofindagainwithfind.