2 hours 9 minutes
Hello and welcome to this Callie fundamentals lesson. I'm your host, Robert Smith, and I'm excited to be here with you today. So you may be wondering, when are we going to get started? We've talked about downloading. We've talked about some history behind Callie. We talked about all these different things. So when am I going to start learning? How do you actually use
Well, the good news is, today's lesson involves getting around with the terminal, and we're going to start inching our way into Callie Lennox, The environment, the file systems, things of that nature, and it all starts here.
So today's lesson objectives are pretty straightforward. I want you to walk away with a few navigation commands, a basic understanding of how to use the terminal, how to get around, how to view files and things of that nature. We're not going to get into anything too technical, but I'm going to give you some tools so that you can start,
you know, kicking the tires and really understanding
you know what's there and how to get through everything.
So what I'm going to do is pull up my lab environment. Now, this is the Cali system in the Host data integrity base lining lab. So if you have access to that lab, you can pull this up and follow along with me. Or, if you've already installed a copy of Callie, you can go from there as well.
And you know, again, there's some differences, like there might be the terminal button. It's up here
in this version would maybe be over here on the side and the version that you've previously downloaded. So with those things in mind, let's go ahead and jump into looking at the terminal.
So it's pretty, pretty straightforward. When you click the terminal button, you get a terminal. Now what you may be wondering is, that's all fine and nice. But where do I begin? How dowe. I understand how to use this? Well, quite simply, one step at a time, right? So when you first open and terminal, the thing I like to do
is what's called Print Working Directory, or PWD.
What that does for me, it's it's going to show me my current directory and where I'm at with respect to the file system and things of that nature. So typically, this is where you'll start off unless you were doing something else
and you may be wondering, Well, that's neat, but
I'm used to a gooey. I can usually see what's in that directory. So how do I know what's there now? Well, if you use the list command or l s for short,
you'll notice that I have desktop, which is the desktop folder,
and that's need as well, right? So with these two commands, you can really understand where you're at within the file system or within this current terminal session, and you can get a listing of everything that's kind of in that current directory that you're working within. So that's pretty easy. Pretty simple.
Now let's say that you need to go back a directory or you need to go back. Ah, level here. So the command change directory or CD here. You can do that with two dots,
and now you notice that there's a slight change here
when I hit l s R P w D first so that we stay on track with that. You'll notice that I don't have anything there. It's just blank.
But when I do l s list,
we get ah hole
of directories here. Now you'll notice there's route that we were just in there, right?
So we went back one. And now we're in a directory that is
again, the kind of root of the whole system here. So now if I need to get into any of these other areas, you might be wondering what? I didn't mean to go here. I need to go back into route. How'd I do that? What? With that same command,
we can take root
instead of the two dots.
And now we're back in the root folder.
as you start working through and you start, you know, navigating you can go to different areas. So let's do it. Kind of quick here. So seedy. And the two dots
we're back in that folder again. Or that directory.
We then do l s. And now we can see something else. Let's say I want to go into the Etc Folder or the E T. C folded. I just do the same thing. C d E T c
P W d. And now we're working out of that particular area. L s. And there's a lot more here.
We're moving a little fast on that, but again, it's just some basic navigation command. So print working directory shows us where we're at
l s shows us the content of that particular directory
CD allows us to move through or back to certain areas and just say that I'm ready to get back to the root folder that I was originally in.
I can just type CD and hit, enter
and someone lamb back where I started. Very nice. So we've entered all of these different things. We've gotten all this different outputting We're starting to get a bit of a mess here. So the next thing that I would like to show you is called clear.
So when I type clear and hit enter,
it gets rid of all that mess, and I've got a nice, clean starting point.
So we were talking earlier about the different directories and what not? And in your root directory, you have the desktop. So if you want to, you can hit CD
and them were there.
Now keep in mind that if you want to quickly finish the name of something, or maybe you're having some confusion on remembering like, let's say, that I'm back in that folder or that directory
and I want to
maybe get to desktop or something like that. Now check this out. If I do see D desktop and Hit Tab
noticed that it doesn't go anywhere. It's not giving me that completion,
but what I do
again and hit Tam, it finishes. Why is that?
Well, keep in mind with Lennox and Callie and any of the distributions, really, their case sensitive. So if you type a lower case letter, but the directory or command or whatever the case may be, starts with a capital letter, it's not going to auto complete or execute accordingly. So keep in mind that that
everything here is going to be case sensitive and you want to be mindful of that is your working.
So now we're in our desktop directory, and that's great. So when I do my analyst again,
Oh wow, you'll notice that the stuff that we have over here is now showing up in here minus the computer icon that we have over here. But we've got our read not t X T file here.
We've got this. Make that T X T. That's not showing up.
now that we're here, let's say I want to be able to see what's in that t X t found without opening. I mean, yeah, you can double click and it opens. Great. You can see it. But if we're working through and we're not navigating via the gooey and I want to read what's in that text file, Aiken do what's called cat it short from Canton eight. And I could do that. Read
dot t x t. I just used have their the auto complete.
And look, it shows the text that's in the file. So this is a quick way that you can read that content of that file and see what's in it.
Now, let's say that I want to get rid of that weird make dot t x t. Well, I can use the moon, uh, remove command,
and then I can start typing the name of that,
and suddenly that that completes there's no error there. So we do. L s again.
And as you'll notice make dot t x t is no longer here so that our am allowed me to remove that Make not t X t
folder. I'm sorry text file.
All right, so now
let's say that I want to, um, go ahead and
make another text file or something like that. So you can also do cat, which allowed us to read.
And I can do a quick, uh, kind of care it here,
and it will output to a text or a text file. And so in this case, what I can do is Aiken, do test
dot t x t.
And suddenly that creates a text file pretty quick on the desktop there. So I'm gonna hit control C just to back out,
and now I have an empty text file here,
so that's pretty neat stuff. That's a quick way to create a text file. Quickly tow read a text file. Quick way to remove one.
Let's say now that I want to make a folder or a directory on the desktop. So in this case, what I can do is in Kedar or make directory,
and then I couldn't do Let's just say I want to call it a test directory.
Suddenly I've got
folder over here on the desktop name test.
So now when I look,
you'll see that test shows up here in blue. Now we'll talk about these colors and all those things in the next lesson, so don't get hung up on the color just yet. We'll explain all of that here soon.
Now, let's say that I want to move my test dot t x t to the test folder that I just created. So what I can do is I can type envy for move
not t X t,
and then I'm going to move it to test
suddenly disappears. Right
no longer there.
if I do my CD to test
l s four list suddenly there it is.
pretty neat stuff. I mean, not not a lot to it. Once we get some of those basic commands down and were able to, um, you know, kind of cleanly navigate and make a few files indecent things. You're really ready to jump in and start working. So good job on that stuff. So you might be wondering while you did. Ah, lot.
How do I know what I've done this? For? How I don't know what steps are taken. What if I want to see some things and I did earlier, but I can't remember.
you can use the history command
and that cleanly this out. Everything that we've done in this terminal
and then from there,
let's say we're done
and we can hit exit and it closes the terminal.
So with that in mind, start doing some navigation. Start working through the terminal on your own and practice in some of those commands. And before you know it, you'll be an expert. Now,
let's do a quick check on learning you didn't think you were getting away without one of those, did you? So what command allows you to move a file from one directory to another? Well, with these in mind,
you may be thinking well
in the movie Makes sense, right? That would be correct. Keep in mind that our EMP was to remove files or content
in Cade ERM make directory was to make a folder or directory, unless was toe list and move was to move files from one directory to another. So in summary,
you should have gotten a very high level understanding on how to navigate through Callie's directories, how to create manipulates and files at a high level and really, how much fun you're gonna have doing this stuff and working through the Cali distribution or any distribution of Linux. T be honest on learning these commands. So great job.
Thank you for your time today. And I look forward to seeing you again here soon.
Network Fundamentals Using GNS3
This course will enable students to install and configure a basic GNS3 network lab that ...
2 CEU/CPE Hours Available
Certificate of Completion Offered
Linux Users and Groups
In this lab students will use command line tools to create, modify, and manage users ...