Time
2 hours 9 minutes
Difficulty
Beginner
CEU/CPE
1

Video Transcription

00:00
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 we've gone over some things that commands to navigate the file systems and, you know, very high level overviews of permissions, things of that nature. But you may be wondering there's
00:18
still a lot of commands out there. There's some things I may not know,
00:22
You know, What are some additional things that I could learn that will help me to get around Lennix and Callie and things of that nature? Well, today we're going to jump into those things. We're going to get some basic understanding of some useful commands, and we're going to see how those commands could be used
00:38
and, you know, again will continue to build on this foundation that we've put together
00:43
and go from there. So I'm going to go ahead and bring in my copy of Cali that I've installed here and you'll see that I've got a terminal opened up and we're currently in the desktop folder. And so
00:56
with that in mind, I've got a few things I wanted to show you.
01:00
So
01:00
you may be thinking I have an Internet connection. I can look up commands and understand what they do. But what happens if you don't? Or what did you just want to see? You know, a quick, easy look up of, ah, command or something like that? Well, I'd like to introduce you to the man commander manual. So when you type man and a command like Ping, let's say
01:19
it pulls up a bunch of information.
01:23
And as you can see here, it gives you the name of the command at the top of quick synopsis that gives your short description some options. And as you scroll through
01:32
down towards the bottom of all these different things that it provides,
01:36
it's got a packet, details and some additional information. So a lot of cool stuff there. Now there's multiple ways to use this. We can hit Q. And that takes us back to our desktop. Here. Do quick, clear to bring that back up.
01:51
Now we talked about catacomb, Captain eight. So you'll see over here to the left. I've got this hello bash file that I've created. If I type cat
01:59
and do hello
02:01
shows me the output for that file. So as you can see here. I've got some some line that I've written here for starting a bash script. And then I use this command called Echo. So you might be wondering what is echoed. Do what does that mean? Well, if we do man echo
02:15
like we were looking at earlier,
02:16
as you can see, it displays the name, gives you some descriptions. It says here displays a lot of text. This could be useful in for writing a bash script and we need an output. Or we wanted to reference something and produce an output from, like the system or something of that nature. We can do that
02:34
using the echo command. So that's gonna be useful for you when you start working on scripting and things of that nature
02:39
and you're jumping into, you know, trying to make some more complex ways of doing things or simplifying things and things of that nature. Now
02:49
you can easily use leaf pad down here
02:51
and edit texts and do things of that nature and edit files. But let's say I'm here on this desk top folder, and I just want to jump straight into that textile or that bashful Aiken do Nano and Hello
03:04
and bam! There we are. I've got my text editor open. Now there's several different types of text editors that you can use. I like to use Nano. Some folks like the eye of some other things like that. But in this case, this is what I like to use now is you can see here a type echo and then hello world
03:21
Let's say I want to make it a little more exciting and happy So I do
03:24
Hello World in two exclamation points here on the end. As you can see down at the bottom, it gives you some commands that you can use. You typically hold control and hit the letters. All hit control. Oh, to write out and I'm going to do Hello new
03:38
hit Enter.
03:39
So like yes
03:43
hitting. Why? And then I'll hit Control X to exit the text editor.
03:46
And now when I do cat Hello New.
03:51
We'll see that That's made the change for me. And then from there I could do a quick bash. Hello, new
03:59
and down There it is Hello world using that echo command. So that's awesome. Right
04:02
now
04:03
we know that we're route
04:05
we'll jump into the next command here. So I am route.
04:09
Let's say that I'm a different user or Europe in Tester Security test that you've gotten into a system. You want to know what permissions the user account hands? Well, you can use the command called I D,
04:19
and that gives you an output of the permissions that the account that you're currently logged into has. So that's a good, useful thing to have. Um, and then let's say you need to install something so you notice. Okay, I'm the route user. I can install new programs applications,
04:34
but how much space do I have? How much information can I really start on this drive right now? So D F
04:40
will show us the free disk space or the disk space that's free on the system and where everything's at, and it gives you this nice layout here of what's been used on the right when it's mounted on as far as the share would have you available space use space, et cetera, And so
04:58
that's a quick and easy way to do some troubleshooting or check to see how much free space you have.
05:01
Now
05:02
I'm going to introduce you to what I think is one of the most important commands which is past W D, which is password for short.
05:11
And when we get in er
05:13
and asked me for a new password. So I'm gonna go ahead and update that
05:21
Oops. Looks like we made a mistake when we can't see what we're doing right? But that's okay. If I had done that correctly, what it would have done is updated my password. And that's very much important when you inherit a system. When you work on a system day to day and you know, maybe you need to change the password or something of that nature or
05:41
you don't want the default credentials on something,
05:43
then in a limits environment, you can use that past W D command, and it will allow you to change the password.
05:50
So I know that was a lot of information, but those were the commands that we want to start with and the things that we want to learn to use. Those were going to be fundamental and helping you to not only and it files and produce, you know, better scripts and things of that nature, but they're going to give you that foundational tool set to continue to move deeper and deeper
06:11
into your understanding of not just Callie
06:13
but Lennox platforms as a whole. So now that we've gone through that together, let's do a quick check on learning which command describes and shows you how to use other commands.
06:25
Now, thinking about that,
06:27
remember D F is going to show us disk space that free So DF down here. Nana was our text editor. So that's going to allow me to edit files and it content make scripts do things of that nature Cat allowed me to pull the output out of a filing displayed in the terminal like we did
06:45
cat Hello, new or cat? Hello. And that showed us all of the content of the foul.
06:48
So the last choice that we have here is man, which is short for manual. That shows us what a command does a description of the command and gives us a lot of good information on what we can do with respect to different switches and things of that nature with those commands that we put after man. So in summary in this very brief lesson today
07:08
we discussed the following the man command, the cat command echo. Nah, no, I d
07:14
DF and password or P past a B D for short, all of those air. Important because man is giving us instructions on how to use commands. Cat gives us outputs. If we don't want to open the file or looking, a text editor echoes going to allow us to do some things like
07:28
write scripts, display information, output information. So it's a great commander having your tool
07:33
chest. Nana was great for editing text files, but it's not the only text editor out there. Ideas great for understanding permissions. DF is good for understanding disk space utilization and where we might be able to clean some things up and passed. A beauty is fundamental and ensuring
07:49
that we change our password or that we don't use default credentials on the system.
07:55
So I know that that was brief, but I enjoyed having you here today, and I look forward to seeing you again soon.

Up Next

Kali Linux Fundamentals

In this Kali Linux training course you will learn about the industry standard tool for penetration and security testing.

Instructed By

Instructor Profile Image
Robert Smith
Director of Security Services at Corsica
Instructor