I'm sure you familiarize yourself with the verbal tools and Colley along with their categories.
So before going forward we just need to learn a couple of Linux commands which are very useful before
continuing with this course.
We're not going go deep into scripting but it's just very simple and basic Linux command that will help
us jump start and continue with the rest of the videos.
Many of the applications that we would use have graphical interface so we will be able to make most
of our penetration tests within these graphical interfaces.
But learning command line is very powerful and very helpful.
I'm sure you will love starting with the fiscal comment is the password.
So let's jump directly to the machine demo.
So I'm still using my default password.
Let's open a terminal here and let's expand the the best practice of course.
Whenever you log in to any new machine is to change your current password tool provided by my colleague
is password.
So we'd just set this password here and it will prompt you to enter your new Unix password.
So I'll answer my password here and write it again.
And here you go.
My new password is set the next common is the less common est means list.
So if I press enter it do lists older than equities in the fine in my current working dedicated ess
has some arguments that can help me explore more about the fuzz.
I'm listening.
For example an S minus L if you want to know more about these arguments that you can pass you can use
help or manual.
So for the s program
we will type and help and you can see all the help provided with the s program and all the arguments
and how we can use all these arguments.
It's pretty much helpful.
On top of that you can use the men command as well.
So men means manual manned space s you hit enter.
It will show you the manual provided with this comment.
What's the difference between both.
Actually some of the programs provide manual and some of the programs they do not provide manual.
So it depends on the program.
That's why I use the next Coleman is see the or change radically.
So if you want to know your current working that if you use the common TWD.
So it's spring toward that.
So it's important to mention that all these commands in Cali and Linux in general are case sensitive.
So if you put a few rights B uppercase w d.
This will tell you that the command is not fun.
So everything think you should write goes in the lowercase.
OK so this is my current working attitude which is the roots.
I can list the files I can change using C D.
I can go to any of these that acted is here for example music study.
This is the mistake I did because of the case sensitivity so music M is uppercase.
And here you go list.
The identity is so if you want to go back to the original path or that entity you've been working so
you c d space dot and you are back to the data you can as well toggle through the previous commands
that you used using the up at all and down at all.
So instead of fighting with the command again you can just go up and down and even if you close the
terminal and open it again you can still use the up and down buttons for the sake.
The next command on our list is the make directory.
So let's do the LSA again.
Let's go on to a music folder and create a directory and KPI.
Unless again.
So here's the entity I can remove this dedicated as well using.
Edit And I already know the identity the OPI unless again it is removed.
Some of the other important commands that we will use is the cat.
So cat actually helps us print the content of the file to the turn.
For example I have a file on the desktop called them on the text.
So if we could do the desktop again and as d to my desktop and here's the file if I want to print the
content on the screen I use cat then I write the name of the file and here you go.
This is the content of the file display.
If I want to change the content of the file another command called Nano space I write the name or the
phone again and the nano program opens and I can he had actually edit the file.
I can add a guards on the end and control X. It asks me Do you want to say.
I say yes and here you go.
Fine I know again.
Or that uses of it.
Oh here you will see the file updated one of the important commands that we will be using you in this
course is the grep common grep actually searches for a string in a file.
And this is very important when we are doing our analysis.
Sometimes we want to search for a certain text within a fine or within a list of return values.
So this application will help us a lot so I will use the same file which is demo tape see and I will
search for the word command for example.
So I use grep command and name of the file.
OK.
And it returns back.
The command word along with the line where this would appears.
It's a very useful command and there are lots of variants to this commands.
We will explode them during this course.
Another command that as well can help us especially when we're looking in to huge files.
We can use the less common.
So let me search for for a huge fun here.
Let me see.
Okay so I should add this is a file called.
It's a look that actually use a don't look so I'll use less and then I'll paste this funding here and
open it so let's open the file but not that once you can sequentially go forward Metway in this file
by using the control F to go forward and control B to go backward.
So it just fetches the file.
Bit by bit so you'll be able to view it moderately and they want to quit just rescue and yaw of the
file and other important command that we've been using during this course is the I f config which is
similar to the IP config on Windows machines displays the current IP that we're using as well as the
subnet mask and the default gateway.
The less common I'll talk about is the locate command locate them and actually finds a file that you're
searching for within the file system and very quickly.
But before that it's mandatory or it's advisable to use the update VB command.
This command will build the local database for all the files on the system and now when you're using
they locate you will be using this database to determine the location of the file.
So suppose that we're searching for the file chrome tab it will return the file in all these parts
so here you go.
If you want to clear the screen just use the clear command clears everything and you can as well still
use the up and down arrows and the final I want to talk about is the new named command.
It shows you the invasion of Cali.
You are working on.
So that's it for their excellence.