In the last lecture, these are the basic commands in college, in this lecture, we saw some advanced
commands that are required for ethical hacking.
So without wasting any much time, let us get back to Akali Machine.
As you yevsey am on the virtual machine, I create a new folder and name it as Efford.
So I have created a new folder and another new folder, F2.
In the new folder, I will create a document, an empty file, and name it as a file one, not the 60.
Now I will launch the terminal window.
We are at the root of the machine that is Akali, and we will go to college next up, when we hit Ellerslie,
we can see the two folder's F1 and F2.
Let us go to F1 Fulda.
We have seen these basic commands, so I won't be explaining these basic commands again in the less
you have Philabundance.
Now let us move the fight one from Fulda, one to follow to M.V..
Is the command used to move follow from Formula One to follow two.
But here, since we haven't specified any part, M.V. is you also used to create a copy of the folder
or to rename the folder.
So M.V. file one, not be 60, A.B.C. not 60.
So File will not be 60 has been renamed as A.B.C. that you can see on the screen.
After getting Ellis' we can see file one has been renamed with ABC Dorte.
Now let us again use the movie command.
But in this case we're specifying the part that is EF1, ABC, F2.
Now what this commands is this command actually moves the file ABC text from folder EF1 to folder.
So in the folder F2, you can see that we have the ABC file.
That disclose all the dads and head back to next top.
The next command that they are going to see is touch common touch is used to create a new file.
So since you are in the next of to follow, we will create a new file, X, Y, Z.
So we'll use the command touch X, Y, Z, not to create a new file.
R.M. Command is used to remove the fight we have used R.M. ABC to remove the file from folder F2 and
only file that has left in the folder F2 now is X, Y, Z.
Now command is used to open and edit the file.
So every type Nannerl and then the filename and hit enter.
I am typing hello, we are learning the commands of Kleenex to save the file.
What we have to do is we have to press control or.
You have to control all.
Then press enter and to exit press control x.
So press control or to save the file or to write the contents to the file.
And then press control, access to clues, so the steps are open, the file through NENO, right, something
press control or enter, then press control X and it will get you back to terminal.
So unless.
You are there and we will CPQ Outdoor Cat Command is used to see the contents of that file.
So if we use the come on, get big or we can see that we saw what we entered right now.
You can see it on the screen.
So this was about all hour creating and moving fires.
This is all you need.
You do not need to know more extra detail stuff about copying and moving files.
Now, the next command is you named Ashot, you name stands for the virgin of the operating system we
are using.
The next command is free.
The free tells you the total ram that is used and available right now, but this is not a total ram
to see the total ram on your of your virtual hard disk or the machine, you have to type free Dashty
and then hit enter.
You can see the numbers have changed.
You can see the total ram.
You can see the occupied RAM, used RAM and also the free ram.
Press clear to clear the screen.
Then we will never get to get that password slash FTC, what is all this now, FTC password file stores,
the contents of all the users who are on the system.
You can see, Carly, that is no, I'm the one who is now logged into the user.
These are not actually the physical users.
These are some of the users are also machine created users of procreated users.
So hackers are always interested in slash passwords, slash file that is epis to slash password file
to know the content of who is using the system.
Now we will add a user, let us add a cyber monck, so I would have put out user add cyber monck, make
sure you use the command pseudo pseudo tells the system that you are the super user of the system as
the U.
Stands for super user and pseudo is actually that super user is performing some actions.
So pseudo user add.
But to add to the user you should be present on the home directory.
So pseudo user add Cyberman.
It will ask for your password, give the password and there you go.
User has been added the how to check.
Let us again go to get.
Then we have to give password to the user.
So pseudo password Cyberman now the password for Cyberman is Let's try a random password.
Retype the password, and they were password updated successfully.
Now user is added successfully.
Now let us check with the cyber monk named User is added how to check.
You have to go to get it easy.
Slash password.
But the then you go on the last line, you can see the user which created just now has been added.
That is fiber, Molk, that is clear the screen another to see how to remove the same user.
Sulu use a deal that is delete dash are Cyber Cyberman.
You can see that cyber war will spoil something not found.
Let again go to guy slash, slash the bloody.
Then Abar grip cyber monck and then hit Enter.
This is the actual command to remove the user.
Let us again navigate to get past the beauty and then we will hit enter.
You can see Cyber Monck has been deleted, the user has been deleted by us.
It is clear the screen and see some different commands.
There is go to see backstop and let us navigate to follow after.
In order to we have to file you are dirty and expose a dirty.
Now, these commands are the most important commands that about permissions you can see because you
are not being fed, has only read and write commands for the user.
It has only read commands from four groups and it has only read commands for others.
So see it more is the command that is used to assign permissions of read, write and execute so you
can see the syntax, see more reference operator mode.
And finally, we will follow this syntax to give permissions to file names.
Let's start giving permissions.
You get all at its user group and others.
Plus is the operator, which is used to assign something, minus is the operator, which is used to
give permission.
So now let us give permission to some fines.
The references are used to distinguish the users to whom the permissions apply.
That is a list of letters that specifies whom to give the permissions you stands for user or the owner.
That is the file owner.
G is users who are members of the group, that is the group or stands for the others.
That is users when neither files owner nor the members of the file group.
Now let us take the command S.H. more.
You equal to X, that is I am giving user or.
Owner of the group to execute the file pick, you are dirty.
Now you can see user only has dash dash X, which means users now can only execute the file fake Ewha.
After applying the command user.
We can see that peak you are now only has minus minus X, Dashti X, come on.
So you can see Ellis Nash.
And we can see Pequod has only the commands for the user who can execute the command.
We will assign S.H. more you is equal to our W, X and the filename X, Y, Z dot, which means we are
giving user all the three permissions to really write and execute.
You can again see that now X, Y, Z user has our W, X permissions.
So these are the advanced commands that you need to know which political hackers.