Finally, we have done the lab set up for this practical section, and now it's time to get started
with Khaleel Linux.
So what we do learn in this lecture, you will learn the basic commands in Linux required for ethical
hacking.
So without wasting any much time, log into Akali Linux Virtual Machine and let get started.
Open the terminal.
And the first basic command that we are going to see is who am I when you press, who am I?
You can see the user name of the person who is currently logged in and using the system.
Then you will see the data command, which gives you the date and time as well.
Then the next is BWV, PWP stands for Present Working Directory right now I am into the home.
That is the next version of Carly.
So I get home and Carly now I'm going to create a new folder, Luna's demo folder.
And now since I am on Carly, I will see list the contents of the desktop that is home folder you can
see.
I mean, Dexter, documents, downloads, music, let us navigate to Dexter, since we have created
the folder on backstop, let's navigate to Dexter.
So now what the city stands for, seedy stands for change and directly I I'm changing the directory
to Dexter.
Changing directory is same as opening a new window in Windows Machine so City Dexter and Ellis Nestande
for at least the contents.
So as you can see on Dexter, when we hit Ellis, we get to see the demo folder now how to go inside
the demo folder.
You can go inside the demo folder as speedy demo folder, or you can just type code the and then press
tab to automatically complete the name Vola.
We are now inside the demo folder.
Now what next
series?
Dot Dot is used to go one step back in Karlee Machine.
So now we can see the dot took us to desktop and again Dot Dot took up to our home.
That is Khaleed Machine.
Let us now again go to the next stop.
You can also go to the folders in the following VCT.
Next up, demo slash folder code only takes one argument and it does not take any spaces, so it's better
you go one by one.
So we are getting back the president working directly is slash home, slash Carly, you may have the
route as well.
Carly is my username.
So that username may change in your virtual environment because you have configured you may have configured
a different name CLEC.
Ah, that is clear.
Thanks for clearing the terminal window.
As you can see, everything got erased after I typed KLR see Aleah.
Next is the Ellis' Dash L Dexter, which means list everything you can see.
There are four files on next up.
And therefore the result that we got is total and these are wdr dash exer.
Now what does that stands for.
D stands for directory.
R stands for read, W stands for right.
And X stands for execution.
That is the permission given for a specific user or group or all those people, the first tuple stands
for user, that is, I'm using the next tuple stands for the group and the last tuple stands for all
of them.
There is others.
So currently on the screen, you, Aphrodite, you can see are W X.
Therefore, user has all the permissions of reading, writing and execution of them will follow.
Group only has read and execute permissions and others have read and execute permission.
Now, let us clear the screen and move ahead.
So type alerts that Dashiell Dexter, you can see there are total 12 folders, but we only thing full
folders, why the remaining eight folders are hidden and therefore you can see the dots and the dots
stand for hidden folders.
Now, let's move on to next basic come on.
The next command is clear, which stands for make or directly, let us force Nymagee to stop and then
I will create a new directory that is a new folder on next.
So type maybe I add the folder name.
The new folder is a folder name.
Now, if you click Ellis', we can see the new folder has been created in the same way from the year
that is removed.
Directory is used to delete the folder.
Now let us go inside the folder.
No such fighter directly.
Why?
Because we are already on the next stop and therefore we cannot execute that command.
So let us go to the new Fulda.
Said the new follow and the new folder is blank is empty after errors I cannot see.
So we saw how to create a new folder.
Now, you can go back to the previous comments by just pressing the upper arrow button on your keyboard,
so press about Arrow to just navigate to the previous commands so that it saves time while executing
the commands.
Try placing the upper arrow button on your keyboard and you will go to the previous commands that you
have typed and execute it on the dominant.
Now, moving on to the next come on.
Now let's create a new file in on a text file where terminal we have seen in windows, we go to some
word document Microsoft Office, and then we create a new file.
But here you can just create a new file with one simple command, and that is the text command.
So we have the present working directory.
We are in home then in the on call room, we are in backstop and on the next stock and we are in the
new folder.
So right touch ABC that is file named or text.
And you can see in the new folder after hitting the Ellis command, we have created the ABC dot file.
Now, let us see how to open the file.
You can either use Cat or you can use the.
So KDA, which takes us back to the root, and if you only type KDDI and hit enter, it will take you
to the root.
Now, the next command is let us copy our text file into another folder.
Your task is not to use mouse.
Your task is to just copy the file from one folder to another folder on top.
You might be confused that a buy in windows, you have just use control, C, control V, but here these
functions are different.
So let is good to see the next stop.
Let us go to, let's say, a new folder or demo folder will create another folder.
Target Fulda.
And again, we have created the target Fooldom target follow up on your next top.
I will copy this absolutely fine.
So.
Kopi.
Next up.
New Fulda, that is the source folder, and we are going to copy the file, that is ABC, That Space,
the destination folder.
That is next top target folder.
And then press enter.
Now, why did we got no such fighter directly?
We made the same mistake, we are already on the next up folder and therefore you will not try to next
up again.
So simply write S.P. new folder, slash ABC dot to target folder.
Again.
The what went wrong in the above comments, let us see.
We are already on the top and we used next up again, so let us rectify that mistake and take the commands
again.
Just erase the next stop and let us see what happens.
Hit Enter Vola, you have successfully copied the file from new folder to target folder.
Let's check the daggered folder.
Seedy target folder and the other commands we are interested in, so we are on NextG.
Let us go to the target folder, Ellis, and there you have we have the ABC dot file.
So in the next lecture, we'll see some advance commands which will be required while tracking different
softwares and executing some command line applications.
Let us have a quick recap.
So in this lecture, we saw the following basic commands KDDI, LSP, WDM, Giddier, Seip, Suru,
and in the next lecture we'll see some advance concepts and commands which are useful for hacking.