Okay now that we had the quick overview of the niggs I want to spend some time talking about the lineker's
Terminal so you can access the terminal through this application right here.
So click on that.
It'll open the terminal window for hours.
And as you can see all it is is a blank screen where you can type commands.
Now the lennix Terminal is actually very very powerful because it can be used to do anything that you
can think of really a lot of the applications in the next that have a graphical interface where a command
prompt programs first and then people made a graphical interface for it.
So a lot of the time maybe the graphical interface will be boggie or crash and the terminal program
will still Warwick.
Also a lot of the penetration testing tools do not even have a graphical interface.
A lot of them can only be used through the terminal.
Not only that but in many scenarios you might only have an SS Hage or a command prompt access to a machine.
So you need to know how to use this command prompt in order to achieve your goals.
So throughout the course we're going to be using the terminal a lot and that's why I want to spend some
time just showing you the basic solvent and making sure that we're going to be comfortable using it.
Now the basic idea is you type a command.
And the result will be displayed for you on screen.
So let's have a look on a very very simple command which is P W D.
Now this command Prince the current working directory has the name P W D.
So if I hit enter you can see it's breynton forward slash root which means right now I'm in the rude
directory.
So basically year this is the road it's whole.
So if I do L S which is a command to list all the directories and files in the current were a key directory
we should get all of these directories that we see in here.
So if I had an error as you can see I can see all these directories in the current or a king the rectory.
Now another very useful command is dcg command this command allow us to navigate in to another directory.
So for example let's say I want to navigate into the downloads.
All we have to do is type C followed by the name of the directory that I want to navigate to.
So I'm going to type downloads.
Now if I hit enter.
I should be inside the downloads now.
So why do pwo need to see my current working directory.
You'll see that it's seen in rude forward slash downloads so I do s here.
It should show me all the directories and files inside downloads.
Self I do and to as you can see I have a directory and the file in here.
And these are the exact same files that you'll see if you double click the downloads here.
Now if you want to go back one directory so similar to press and the back button in here all you have
to do is to see the again the command to change the working directly followed by dot dot.
And now I do peel them lewdly you'll see and back in rude and if I do else you'll see all the directories
and files and Root.
So that's all good.
And there is actually a huge number of commands that you can use.
So go wanted to include a link in the resources of this lecture.
Of all the Linux compilers that you can use.
You don't need to know them by heart.
We're actually going to be in a lot of them throughout the course.
So you are going to naturally learn them as you go through the chorus.
Now if you are using a command and you're not sure about how this command warrick's you can just use
the mind command to display the manual of this command.
For example we've used the Ellis command here to list the files and directories in the current working
directory.
But if I do mine followed by Elias this may simply means I am requesting the manual of less.
So I'm asking how can I use the l s command.
So if I had Enter you'll see I'll get a screen similar to a text file and basically it's given me a
lot of information on how to use the Ellis command so you can see that it's telling us that this command
will list the directory contents.
I guess the way to where X by type in l s followed by the options followed by a file.
If you if you want to run it on a file you can see a longer description of the command.
And then you can see all the options and the arguments that we can use with this command.
Now Ellen.
Most of the time the options will always follow the same syntax.
So either you die Dyche letter or a dash dash a word to specify the argument for example and hear the
dash a dash dash all will ignore entries starting with it.
So if you keep going down in here you'll see all the options and arguments you can use with the l s
command and we have another example here we have the dash L which means it's going to use a longer listing
format which will display more information about the files in the current working directory.
So let's have a look at that.
I'm going to press queue to exit this and then we're going to do Elyse as usual.
And since we read the manual we know we can do dash L to see more information about the files and if
I hit enter now you can see I'm still getting the same directories but it's also shown me the permissions
of the user as the data created and so on.
So you can use the man command on any command you are not on on the Elias so you can use it on the pwt
you can use it on this PDA or any other command and it'll show you full description or the manual page
of how to use this command.
Now I'm glad to clear this screen by type in clear.
And the next thing that I want to show you is the dash dash help.
So this is something that you can use again in almost all commands and all programs in Linux so you
can just type the program name or add the command name followed by the dash help.
As you may think this will show you help message.
Tell you what this command is.
What this program is.
The arguments that it takes how to use these arguments and examples at the bottom.
Now another useful thing with the Terim And also I'm going to cure this again is the arrows so you can
press up to go up to see all the commands that we executed before and again you can go down to see to
navigate between the commands that you executed previously.
You can also use the tab for autocomplete.
So again let's do this and you can see all the files and let's say we want to go into documents so we
can do Cedi followed by documents.
You can type documents or if you're lazy like me you can just do.
Do you always see and press tab.
And as you can see it's automatically complete in the rest of the world for me.
So this is something that comes very very handy when you using the terminal for a long time.
Now what I also want to show you is how to install programs in Cali from the terminal.
So first I'm going to clear this and the first thing that you want to do is update the sources where
akali can search and download programs from.
So were going to do it dead of date.
No good is the name of the application that allow us to download and install programs and were seeing
an update.
Because I'm saying that I want you to update the list of all the programs that I can install so I'm
going to hit enter and you make sure that you have internet connection when running this and as a guess
you still and me that it's done and now we can go ahead and start install and applications.
So the first program that I want to install is actually a terminal program so similar to this one.
What it allows us to have multiple terminal windows open in the same window.
So in order to install a program through the command line we are going to do it GED which is again the
name of the program that allow us to install programs on the system.
We're going to say that I want to install and the program that I want to install is called Terminator.
So very very simple.
First of all were Type in the name of the command which is Abd get were saying that I want to install
the program name that I want to install is called Terminator.
So I'm going to hit enter.
And this is go to download and install Terminator for me so you can use the same command to install
any program that you want.
You just need to replace Terminator with the name of the program that you want to install.
Now I've already downloaded and installed this before so it didn't ask me to confirm.
But if you're running this for the first time it might ask you to confirm whether or not you actually
want to install this program.
So all you have to do is press y from the keyboard and hit enter.
Now as you can see it's done.
So if I go to my all obligations in here.
And just type Terminator.
You can see that I have it here.
So I'm actually going to drag it and put it in my dark so I can access it easily in the future.
So now I can just click it in here and that'll open Terminator for me.
Now this is another application that allow me to run commands.
So it's exactly the same as this.
So again I can do el'ad send Pete w.d..
The only difference is with this one I can actually right click and click or split horizontally for
example.
And this will split the same screen into two screens where I can run commands at the same time so I
can have some commands in here and I can run commands in here.
And then I can even split this more if I want again vertically or horizontally as you can see I can
have as many terminal windows as I want and this will be very helpful in the future when it will be
running a number of programs in a number of commands at the same time.