Placeholder Image

字幕表 動画を再生する

  • back.

  • So today's video I'm going to show you basic Lennox navigation at the command line.

  • So there's one of those areas where people are all excited to get into Lennox.

  • They install itics, they get a blinking cursor.

  • They think they know what they're doing.

  • So they type in some commands and then those commands don't work and they get frustrated.

  • And then they go off to learn floral arrangement, right?

  • One of the important things understand when you're dealing with the clinics command line is that there are a couple of differences between the Lenox Command line and the DOS world.

  • And as with all things and Lennox, if you type in the right commands, Lennox will do what you tell it to dio.

  • If you type in the wrong commands, it will go.

  • All right.

  • So that's one of reasons a lot of people get frustrated because they they're not thinking about it.

  • They just do with the things that they're used to doing in the Windows world, and that doesn't work and Lennox and then they get frustrated enough for you again.

  • They go off and start to arrange flowers.

  • Eso won the important things to understand in the Lenox world when you're navigating the command line is that the forward slash has a really meaning in the Lenox world that is your system route.

  • So basically the first folder and all four directory the folder that everything else is in.

  • I guess you would call it that is the forward slash right?

  • So whenever you put in that, you want to change a directory and you put forward slash What Lennox is going to do is is going to go to the system route that is going to look at whatever folders you have put past that, and it's going to try to drop you there, right?

  • So if you're in a forger, let's say Let's say you're in the home folders.

  • Home folders were all the oh, the user profiles are stored s.

  • So let's say I want to go to Bob.

  • I want to go to my profile folder in the home for So if I type a CD change directory, forward slash bob, How Lennox is going to see that is going to go to the root of the system.

  • It is then going to look for the folder Bob there.

  • Well, by the folder Bob, Isn't there the folder?

  • Bob isn't forward slash home forward slash Bob.

  • Right?

  • So you're going to change a directory, Athleticsworld You induce CD for change directory and then simply Bob or simply the folder name that you're going to.

  • So if you're gonna put in a full path So let's say I want to go to Bob and I won't put the full path and oh, do CD forward slash home forward slash Bob that will drop me an a bomb.

  • If I'm in the folder home and I want to go into the folder Bob, I would be go C D space just Bob.

  • So that's one of the important things one of things like screwed me up about 12 years ago, trying to deal with us.

  • I just just screwing up with forward slash.

  • It is less.

  • The next thing we have to remember is again.

  • Remember, in the athleticsworld capitalization matters, capitalization matters.

  • If you have a folder, let's say Bob, a folder Bob named Bob in all upper case letters.

  • Uppercase b uppercase o uppercase be.

  • That's a folder.

  • If you have Bob and all Lower case, full letters.

  • Lower case be lower case o lower case be That's a different folder.

  • If you have a folder uppercase be lower case O lower case Be that's yet a different folder.

  • If you have lower case, be lower case o uppercase be That's an entirely different folder.

  • And then if you have lower case, be uppercase Oh, lower case be That's an entirely different folder.

  • So this is one of the reasons when naming convention has become really important.

  • Let its world Because right, if you're used to naming four orders all upper case on Ben, somebody else comes in and they're not used to name the folders all upper case.

  • So they start typing in a folder names all lower case those air going be different folders and you're going to running issues.

  • So the big things to remember when you're dealing with Lennox World versus the Windows World is capitalization is huge, right?

  • Upper case B is different than lower case.

  • Be so.

  • Remember that.

  • But also remember, with the forwards last, if you do forward slash basically how Lennox is going to interpret that is going to go all the way back to the system route.

  • Then it's going to look for the folder and whatever path you have, right?

  • So just keep that in mind.

  • So if I'm in the home of order and I want to go into the bob folder, I would simply d'oh seedy space.

  • But I would not.

  • Do you see the space board slash Bob?

  • Uh, because then it'll screw things up.

  • So anyways, with that, let's go over the computer.

  • I'll show you a couple these commands again.

  • Navigation and Lenox.

  • Really simple, really simple.

  • You type in the right command.

  • It's easy.

  • You don't type of the right command is miserable.

  • That let's go over, take a look at the computer and I'll show you how this works.

  • So here I am at the computer, and this is the just the stock standard installation.

  • I have not done anything to the soup.

  • Bone Tea server gets the U Bahn to server.

  • Obviously, here it's 18.4 point three.

  • But everything that I show you today should should theoretically work 10 years from now.

  • Okay, so we have a server log, and so again, I'm gonna be Bob password.

  • 123456 Because I like my life to be easy.

  • Okay, so we've got this.

  • I'm going to type clear, so that will clear the screen.

  • So I have a nice screen that's easy to look at.

  • And then the first thing I need to do is I'm sitting here looking at this.

  • And the first question I have is where where am I?

  • Mommy, where am I In this operating system?

  • Because that that's a problem, right?

  • You're just sitting there and he was looking at a blinking cursor.

  • And you have no idea right now where in the folder structure you are.

  • So to figure out where the hell in the folder structure you are, you use the command, P W d hit inner.

  • And this tells you where you are.

  • So I can see I'm in the Bob Porter, which is in the home folder, which is in the system route.

  • So now I know I'm in the Bob Porter s.

  • So let's say I want to change the directory.

  • So we use the same command we would in DOS CD.

  • Now, let's say I just simply want to go up one level, make this easy.

  • So I do CD space, and if I do period, period.

  • What this will do is this will simply take me up one level.

  • So let's say I'm going around messing around with a lot of different user accounts.

  • So okay, I'm in Bob's profile.

  • Let me go upto Home says that is a folder of all the All the profiles are stored away up the home.

  • Then I can see what's going on there.

  • So if I do seedy space dot dot that will take me up one level hit enter.

  • We can see that I'm here.

  • I could do P W.

  • D.

  • And so now I see I am in the home folder within the system route.

  • So that's pretty simple.

  • Again, If I wanted to change to a different folder, let's say I just want to simply go back to system route.

  • I could do C D space forward Slash and I can go now in that system route.

  • I could you be W d.

  • And there there you go, on that system room.

  • Let's say I wanted to change back to the Bob Ford or so So I have the Bob for appear home bombs.

  • So let's say I wanted to go back to that folder.

  • What I could do as I could do CD forward slash home forward slash Bob.

  • Now I do P W d You can see I'm now in that folder.

  • So that's all you have to do to go up one level.

  • You could do period period on then.

  • If you want to go down one level, there's a folder.

  • You want to go into that in the folder Grant, you just simply do the name so again.

  • So it's a CD period, period.

  • So I am at home right now.

  • So what I can do is like a new CD and instantly do Bob.

  • So this will put me into the bottom folder and u P W d again again cm now in the bob folder.

  • So it's really that's really all there is to navigating around and seeing what folder you're.

  • And the next thing that I want to show you is how to do it.

  • The list command.

  • So this command is basically gives you a directory, tells you everything that is in the folder you're currently in.

  • So Bob has nothing in it.

  • So what I'm gonna do is go CD and I'm going to go back to sister.

  • So we got a system room.

  • I'm then going to clear the screen just to make things easier for us to see.

  • And then I'm going to use the L s command.

  • So the L s command is simply less command.

  • L s, I hit.

  • Enter and there we go.

  • So now these are the files and folders that are in the system.

  • We got bin Bootsy the wrong home.

  • That's what we're dealing with.

  • We have, ah far.

  • We have some of these other folders that will be dealing with another classes.

  • So if if I'm in a folder and I just want to see what the what's in that folder?

  • I can simply do the l s.

  • But you take a look at this.

  • This l s command that does it.

  • I mean, it does give us the information, but this isn't the most useful way to look at the information.

  • So one of things that we can do is we added arguments with you.

  • L s We do.

  • L do.

  • L s L R l s space.

  • Sorry, hyphen.

  • L hyphen Luo.

  • You gotta put in the right thing.

  • Hyphen l and then if you do that now, this gives us much more information, and it gives us in a format that's a little easier to read.

  • So again, just l s just puts it in a block like this.

  • And this might be useful for you again if you're just here like crap.

  • What the hell is the name of that folder you can you can just you pull this up and look at it.

  • But let's say you want to look at some more information.

  • So if you do the l S L command, this gives you a lot more information.

  • So we'll be talking about a lot of this in different, different classes.

  • So if you don't understand exactly what you're looking at right now, that's okay.

  • Over here on the left hand side, this is the permission.

  • So basically, this is what people are allowed to.

  • D'oh!

  • So this is the owner of the file or folder.

  • This is the group owner of the file or folder, and in this is everyone.

  • That's how permissions work in the Lenox world.

  • We will talk about that kind of different video.

  • Uh, these air something called hard links.

  • So how many links go to these particular files or folders.

  • We'll deal with that later.

  • Then we have the user and the group owner so you can have a user owner.

  • So Bob can own a full file or fold or something like that.

  • And then you can have a group, just like in the Windows world.

  • You can have a group that owns a file folder and then you're gonna you can put permission stores that So we have the group owner there past that We didn't have the size.

  • Eso this size here shows us how big the the file folder is on.

  • Then we have the last modification date.

  • So that's what's here.

  • And then over here again, we have names.

  • Now, if you're looking to this, some people don't like the numbers out like this.

  • So one of the things that you could dio is you could do l s Did you l s space hyphen l and then age if you use lower case take And what that is for is what's called human readable.

  • I can hit, enter.

  • And so what we see now is the difference is now for the size.

  • This now gives us in Kila Bets, orbits or megabytes or gigabits If we actually get get to that some point.

  • So this gives us in a size that's a little easier to read than here on dso again.

  • This is one of one thing to be thinking about when you're dealing with things in Lennox is there's all kinds of customization for me.

  • I say getting a human readable size and normally don't care about.

  • So I just normally use l s space hyphen.

  • L I'm fine with that.

  • I'm fine.

  • Uh, some people are like, No, I will.

  • I will take the extra time to type in the lower case eight.

  • So I get something human readable s O.

  • If you're interested in something like the L s command, there is a lot to the L s command.

  • There's lots of different arguments and things that you can plug in.

  • I'm just showing you the basics here.

  • So then the final thing I just want to show you is that that really and truly that capitalization does matter, right?

  • So we know that there's home directory, so we got a P w d.

  • Right.

  • We know we are in the system route right now and we know and system room There's a home directory so I could do seedy space home.

  • And so this will take me to the home directory.

  • Right?

  • There we go.

  • And so I'm now and the home directory.

  • Now, let's say OK, I want to see what's in the home directory.

  • L s And so we see, we see that there's a bob folder in the home directory, so I'm thinking, Okay, I want to go into the Bob Ford.

  • So what?

  • I'm gonna d'oh just to show you of capitalization, cause you can see the Bob for their if I do, but all uppercase letters.

  • So this b o b not be zero b b o b Just simply all upper case letters, and I enter Bob.

  • No such file or directory.

  • If I do.

  • Seedy Bob, no such file or director.

  • If I do see the Bob blah, blah.

  • And so if I do CD, keep it all lower case because that is what the actual name is And a hit inner.

  • Yea, I'm in the box.

  • So that's just a little example that yes, capitalization really, really, really does matter.

  • And if you get stupid about it.

  • It can cause you a lot of problems.

  • So that's how to use the PWD command.

  • That's how they change.

  • Directory up one level to go up one level he period, period, and showed you how to do the list list hyphen l on how to change directory.

  • And so that's really all there is to basic navigation and Lennox.

  • So now you two are able to move through the folder tree in a Lennox operating system.

  • Yeah, you can go up a level.

  • You could go down on level.

  • You go back to system route, you can You can list all the finals of folders in the directory.

  • You can list the files and folders with all kinds of fancy information, like permissions and all that kind of stuff.

  • And so, yeah, now you can move around.

  • Now I know.

  • I know.

  • Someone that I know.

  • Something little snouts out there was the little Olynyk snobs.

  • They're out there, uh, wise, You're wasting his Tony bonus because apparently I am the only computer versus in the entire world that remembers when he was 13.

  • Literally way back, Because