What exactly is legs, so legs is an open source free alternative operating system that can run pretty
much any hardware.
So if you have, like an old laptop somewhere, you can wipe it clean and put Linux on it entirely free.
Typically, Linux is very lightweight and it's very secure by default.
Of course it has vulnerabilities, but it's a little bit more secure than other systems by default.
And then also it's typically a command line focused.
But you can also, you know, get a distribution of Linux that has, you know, Buist.
So there are hundreds of different flavors as people call in the industry.
These are just different versions of Linux and you can just search for them on the Web and you can find
them and see which one, you know, fits you the best, but the one we're going to be using for this
horse and that you would most likely be using, you know, if you were doing this.
Hacking is calling Linux, and it's designed primarily to be used for penetration testing and ethical
hacking.
So let's just go over some of the basics and Linux, you know, so the terminal.
So a lot of the things that you're going to be doing, Linux, is going to be in line, especially with
politics and hacking stuff.
So you're going to have to get used to it, you know, get used to staring at the black box.
All right.
And just the lines and lines of code type stuff now so that you're not really going to be looking at
just going to be looking at the different demands and outputs from it is not anything to say.
Don't worry, we're going to get into Astarte, very basic.
So to access the command line, you're going to need to open a terminal.
So in what you're going to want to do is click that black box you see up there that has a white outline
on it and it's going to open up a terminal from that terminal.
We entering commands.
So I have a list of some of the basic Linux commands that I want to go over, which you guys there's
a handful of commands that you need to know.
You don't have to be like a Linux master to become an ethical hacker.
But there are some commands that you really do need to know.
And, you know, just note that Linux is case sensitive all the time.
So make sure that you're inputting commands exactly how I, you know, show the show, you know.
So just to briefly go over some of the commands.
So who am I to username the current user hostname press the hostname or device puede press the current
directory that you're in, which is just a folder else list out the contents of the current directory
that you're in could followed by the directory name.
It changes to that directory.
Dot backs up about one directory.
So like if I'm in the homeslice user folder, if I post CD enter, it'll take me back to the home folder.
OK, so my dear.
And then a directory name.
So this creates a new directory, R.M. file name at least the file name that you indicate right there.
And then there's RDR delete the least integrated directory Asou Dasht username.
It'll allow you to switch users like in Windows.
We typically have to log in and out in Linux.
You do a command line and it's very, very quick.
You can just as you dash use the name and then you're good to go.
But in the past what are you good suto.
And then any command excuse that command with room privileges, which is the same as administrator privileges
of a pseudo dashi, allows you to switch immediately to the root user account.
And history shows a list of all the reasons commands that you have executed.
So I have config prints out the IP address and network interface information for the system.
And then S.H., MIT and ABC right there is going to be like it's going to be three numbers by the there
of a placeholder and then the filename so that I'll change the permission of the indicative file and
we're going to go over that.
So now let's go over to our colleague, the next machine and actually try some of these commands.
OK, so we're the home screen of our colonics machine.
So this is the terminal box right here.
So click on that and then it should open up a terminal window right here.
So let's go to the commands that we, you know, just went over and I slide really quickly.
So you type in where my inner ear tells me that's my username to see the current username.
You know, the answer to that executed that command.
So now let's try the hostname command post.
They remember I name this this box tally.
So, of course, so puede present working directory.
This tells me that I'm currently in the home county voter and if I wanted to see what was in here,
I'm not sure there's anything in here.
There is so less and less of the contents of the directory.
You can add different switches on else I like to do play.
It shows all files and lists them out like vertically and shows permissions as well.
So that's something that I like to do.
Something you will probably find useful as well as other Haggard and then so let us see it as a blessing
in.
So if I want to change to the documents, folder, its CD documents, and then switch to documents for
voters to affirm that Puedes when Homeslice counted such documents.
So now if I wanted to go back because the SAS should have on record a CD space dat dat and now I'm back
in homes like California.
There you go.
So if I want to make a directory called, you know, hacking tools will do mediaa hacking tools.
And now if we do, unless we see that as a directory there with the switch to it's a CD hacking tools.
So that's pretty cool.
So that's backout.
So let's say that we wanted to remove her file, so I'm just going to make a fire really quick.
This is another listener.
It's called Touch and then a text file.
It just makes a file.
So Nici test file right there.
So what we can do, we can remove this test file.
So if one deleted because it was a mistake, you know, R.M. and then test file and now test files is
no longer.
There you go.
So now armed are the other remove function we can take.
We can get rid of the hacking tools that we need.
Oh and also at any time with Lennix, this is a quick little nugget.
You can hit tab when you starting to type things and it'll autocomplete it for you as very useful.
We don't need trying to rush or it just makes things a little bit easier and you get into the flow a
lot.
You'll start seeing that using the tag function a lot.
But anyway, so armed you are hacking tools is no longer there.
So now let's say I wanted to switch to another user.
I don't think I'm another user here, but let's see if DSU Caleigh and then you put in a password,
super secret password and it switches to that user.
I don't think I have any other uses on here, but we can do a pseudo dashi and this will allow us to
switch to root them.
And now I'm the root user.
And if any time you switch users or anything or you switch to room, you just type in exit and you can
get right out of it.
So also, if I wanted to do like let's say like this directory here, I can see right now and list out
the directory, everything is in it.
But if I didn't have rights to this folder, like maybe it was owned by Rupert and I couldn't see any
of this stuff and I couldn't I could see this coming in here, I would do a pseudo command and then
I would do less.
And typically the pseudo command will also, depending on how your system is set up, it'll ask you
for your password, but it doesn't always do that.
But also note that when you do, you suto in last, I'm not sure the exact time interval, but it lasts
for a good while after you do Souto and then you want to do it again for a while until you don't execute
any commands for a while.
So moving on to the next command, let's say we want to see what we've been doing because there's something
I did earlier that I need to doing in because I need to see it.
This is very helpful.
So you type in the history enter and it shows you the history of your commands.
So then I have config, which is going to show us our networking information.
So the way this county VM is set up is different than the older ones.
You actually have to do pseudo.
I have config and then it'll show you everything is set up a little bit more secure than the older ones
were.
So we have to destroy disruptively then.
You might not have to do that.
But the way they set these, you have to.
So now let's make another five really quick because we are in homeground, so let's make another file.
So touch test file too, just because so we see test pilot who is there and we see sorry else.
Just so sometimes it gets a little bit overwhelming.
We do.
l'Est, L.A. so with the test file too.
So you can see that the owner of the file, which is Calli, we see equally twice.
So the first one represents the owner of the file.
The second one represents the group that the file belongs to.
So the owner of the file has read write access, which is represented by the RW that you see there.
And the group actually has read access and then everyone else has read access as well.
So this is typically how you'll see Linux permissions and that's how you would interpret them.
So we can change these permissions, if you want, with the C H Marchman.
So besiegement and then those numbers I talked about before where the ABC was the placeholders.
So let's say we want to make sure everybody can see and read this file and executed if it's the executable
file, we my 777 and then test file two and now Tesfai to execute a moulis when it color changed.
And now everyone has read, write and execution access accessing look are more specifics of the Linux
permissions.
I'm not going to go over them in detail here.
Gonna confuse me, but I'll include something in the resources for you guys to be able to go learn a
little bit more about Linux permissions, because it's something that's very important to learn as well.