It's thesameaswhatyouweredoingwithfiles, butitcanbe a littlebitdifferent.
EsooneofthethingsIfyou'regoingtobemaking a folderormaking a directory, youusethemakeDirectorycommandin K d.
I.
R.
Command.
Sothatishowwe'regoingtobeabletomake a directoriesbutthenpassedthatwhenwestartinteractingwiththosedirectoriesandwe'regoingtobedoingthingslikecopy, youknow, whenwe'regoingtobedoingthingslikedeletingdirectoriesandfolders.
Andwedoour m dohyphen r f recursiveforce, andthenwhateverthefolderison, oneofthereasonsyouusetheforcecommandissometimesoftheirreasonswithintheoperatingsystemwheretheoperatingsystemdoesn't wanttodelete, Let's say a specificfilethatisin a folderon.
I toldyoutodoit, andyouwilldoit s soyoudousetheForceForceoption.
Nowagain, whenyougetMaurAdvancedandLennoxadministration, youmaywanttoleavethat F auctionoutwhenyou'reusingtheremovecommandjusttomakesureyoudon't dosomethingstupidButinthebeginning, Hey, you'regonnabedoing a lotofstupid.
Youmightaswellmakeyourlifeeasierwhenyou'redoingstupidthingstosaywhenthatforcethatforestoptionWell, basicallythankyourlife a loteasier.
We'retryingtodeletestuffsothatlet's gooverwhat?
I'm gonnashowyouhowtodotoday.
So I'm sureyougottamake a directory.
I'm goingtoshowyouhowtomoveandandrename a directory.
Sojustlikewithfileswereused, Themovecommand, Themovemanisbothtomove a fileorifolder, butit's alsotorename a filefolder.
Uh, thenwe'regoingtoshowyouhowtodo a copycommandon.
Then I'm goingtoshowyouhowtoremovethedirectorytotallyusingagainhyphen R f optionthere.
Sowiththat, let's gooverthecomputerand I canshowyouhowthisworks.
Sohereweare, atmybasicmonthlyserverthat I haverunningwithin a virtualboxwith 1 to 18.4 pointthree.
Lt s nowallthecommandsthat I showyoutodayshouldworkonanydistributionofLennoxthatyou'reusing, Youalwayshavetosayshould.
It's Lennox, it's Lennox.
Butanyway, let's lawagain.
So I wouldusehernameofBub, Have a passwordof 123456 Andtherewego.
We'renowlogged.
Itwillclearthescreen, soit's easiertosee.
Thefirstthingthat I'm goingtodois I'm goingtousethat P a W D commandthatisgoingtoshowuswhatfolderweare.
Sosince I'm inthisfolderand I canaccessNewFullerbyjusttypingnewfolder, that's that's all I havetodotobasicallymovespacenewfolderspace, andthenwheream I gonnamoveittoo?
Sowhat I wanttodois I wanttomovenewfolderintofolderintofour.
Sotodothatfolderforwardslashnewfolder.
Sowhat I'm doingisfromwhere I'm atinthefilestructure, I'm sayinggointofolderandthenmovenewfolderintothatfolderhopefulwhentheimportantthings, thoughtorememberhereisrememberthatmoveCommandisboth a movecommand, actuallymoving a fileandalsoyourrenamingcommand.
Especiallyifthatservermatters, especiallyifit's a productionserver.
Backeverythingupbeforeyoutouchanything.
Bankitup.
Sowe'regonnadohereiswe'regonnacopy.
We'recopying a newfolder, andwe'regoingtocreate a basically, just a backupfoldercallednewfolderdotbacknow, sincethereis a filewithinnewfolderwhen I hitenter.
Whatyougetisyouactuallyget a decenterrorhere.
C p hyphenarenotspecified.
Omittingdirectory.
A newfolder.
Allright, soifwedo, l s wecanseethatwestillonlyhavenewfolder.
Here's what I needtodowithanynewCPspacehyphen R.
Sothisisrecursive.
Theyweregonnasay, newfolder, Whatwe'regonnabecopyingandthenewfolder B a k right.
Socopyhyphen R recursivenewvoter.
Thisiswhatwe'recopying.
Andthisisthewaywe'regonnabenamingthecopy.
Andthenwehitenter, anditgoesrightthrough.
Sodo l assfromhere.
Wecanseewenowhavenewfolder, andwehavenewfolderdotbacksothatthat's a gooddealrightthere.
So, withthatagain, ifyou'regonnabeplayingwiththis, I wouldsayitwouldsayclone.
Ifyoucreate a virtualmachine, clonethevirtualmachineandthenplayaroundwiththison a clonevirtualmachinejustsoyoudon't havetoreinsellingoperatingsystemwhenyouscrewsomethingupWhenwentsosoSothereyougo.
Asalways, I enjoyeddoingthisvideoandlookforwardtothenextone.