Now it's time to talk about the directors.
So now the first thing I want to mention, we have two.
Bathtub's actually the absolute best and relative best.
So what are the absolute, absolute best and bath now?
The absolute bath, actually.
So if I take the WD, you can see that I'm starting from that.
Yes.
Which means the root directory or the root directory of all the system.
All right.
Now, the road to Home Depot, by the way, which is the root.
This is the home directory.
OK, so the home of this is the absolute best for this directory on this current directory right now.
If I want to go to workspace and if I take my guess, you can see that I am inside that home at the
home.
But you can see that I have work space and we have the remoting directory.
So if I want to go to Workspace, I can just see the workspace right like this right now.
No, actually, this is the relative bit, but the absolute path is like this.
So you can see that when I typed that or B the D, I took that.
So I'm starting from the scratch or from the root home of Wanto in workspace.
OK.
Right.
By the way, I need to provide a seed here actually.
The Seed Command.
Yeah.
So you can see that go to home.
I want to.
All right.
If I type it.
Yeah.
It works as well.
So this is the difference between the absolute and relative relative which means it is related to my
current path, which means if I want to go.
So if I return here.
So if I want to go to workspace.
So if I want to go to the workspace directory, it needs to be in the current path.
OK, which is the Bethia.
By using that command, then I can go and put its name.
But if it is not, I need to provide the absolute best, which is starting from the root.
What we saw, which is the home of windows and then workspace.
So far, so good.
Now we have two things I want to say.
Now we have the dot and we have the dot or the dot.
We which means the current directory, dot, dot or double dots, which means the Beerenberg.
All right.
Now, what are you talking about?
We don't understand anything at you.
OK, now if I take this moment that year, which means on everything, bring everything here.
You can see that now we have other directory out of the things.
Now you can see that we have the database history that Basche something, that something.
And by the way, anything started with that like this, that the info is such that these are hidden
files or directories.
So you can see that this is a directory.
But because it started with DOT, which means that this is it in there.
Now this is provide data provide, which means a regular file.
Text file.
All right.
And so on.
Right now you can see that, yeah, these are normal directories and file.
Some of them are hidden by starting with DOT and some of them are not like these, like the remote village
or whatever.
But we have these two, which is the dot and we have the dots and the dot, which means the current
directory, which is the home of Unter.
Right.
Which is open to directly the home director of the Ubuntu user.
That dot dot, which means which is the better directory of the current directory, which means what
if if assuming if I am assuming that the open door, which is the parent we are.
You are right.
Which is the home.
Yeah.
So why so how to use these actually.
Yeah.
Good question.
So let's clear the screen first.
Let's put Ellspermann now we have the workspace.
Right.
We want to go to it.
We will use the workspace like this.
So far so good.
And now we have this directory, whatever.
It's OK.
Now what if I want to return back.
Should I provide the absolute best over and over, which is CD home 5.0 over and over each time I go
there?
No, actually this doesn't make sense now.
Actually, there are two ways.
The first thing we have an it yes.
Or something, but just typing the CD commands like this and Bressington, this will return to the home
directory of the current user, which is that a window which is home Ubuntu.
OK, so like this you can see that we return back.
But imagine if I am inside the workspace and inside a workspace.
I have an one and inside directory.
The first day of three is secondary to third, but empty.
So I am very deep into the workspace directory.
I don't need to return to the home directory of Oberto, then go again then.
I know this doesn't make sense.
Right, how to do that.
Let's create the screen again unless CWD to the workspace.
Now, what if I want to return back?
You will use the parent directory, which is the dot.
OK, so the dot means I will return to the Barrandov three of the current working directory.
OK, so the current data is workspace.
The parent director of it.
Which is what.
Yeah.
Which is the Ubuntu home directory.
So if I return like this so you can see that we have returned back now actually.
So let's go again.
Actually by the way, you can put actually by the way so that now you can put here put it like this,
I mean and inside it you can but workspace then return then workspace.
So you can see that.
No, actually this is somehow weird, but you can see that I am returning back.
Then I go again to workspace, I return back, then I go again to workspace.
Right.
By the way, the duty or the windows is inside every directory in the whole Unix system.
OK, so every directory has to be that is which is the dot and the dot for the current entry and the
dot which is the parent directory.
OK, now you may ask me to but we know what is the evidence.
What is the dot.
Don't worry, we will talk about this when time comes.
Don't worry.
OK, so let's execute this command.
We will return back.
Currently we are in their workspace directory.
We will return back.
Then we will go again.
We will return back.
Then we will go again.
So let's see.
Yeah.
Actually this doesn't make sense.
I know, but actually it's good to understand how that Barend directory or that that is work inside
Linux.
So you can see that yeah.
Everything is working as expected.
All right.
So we are back then we go again.
We turn back well again.
OK, now another thing now, how to create a directory.
Now this is what we are talking about.
We want to create the directory and we want to remove a directory.
OK, the first thing is use the document.
So this command was created.
OK, so let's name it I one.
It's a. yeah, this one is here now let's go inside the other one.
Cool.
So far, so good.
So if it's dash or dash it, which means everything, you can see that we still have these special directories,
which is the dot and the dot dot.
Portable device, which is the current, which is the one or the parent and the parent for that one,
what it is.
Yeah, you guessed right.
Which is the workspace.
Yeah.
So far, so good.
No, I want to create another data inside that one mic guy or make directory dial two.
OK, now let's go inside which is dear.
All right.
So far so good.
Now I want to give you another shortcut, which is the CD Desh Now CD Dash actually works as the back.
So if you are opening your browser, for example, this is just an arbitrary example.
OK, or a simple example.
And you go inside this specific website and you need to return back so you or you click on the back
button.
Right.
So actually this works like this CD dash, so you can see that.
So I am currently in the CD, so I am little turned back and on the dial.
One you can see like this.
I have the DA two I go to dive to.
If I thought that it will return me back to the dead one, which is this one, OK, it will give me
the option, which is this one.
Now, you may ask me, but I got confused.
Please, what is the difference between the dash and the dirt?
All right.
Don't get confused.
I will.
I will explain.
That indicates.
So first thing, I want to go to workspace.
All right.
OK, now, inside it we have the one.
Please ignore this thing.
OK, we have it.
That one.
OK, no.
See the dial one.
And I didn't need to intervene, KeyData, to know I will, but I have to.
OK, I will.
I would Bressington now so you can see that I am inside the Diatta and the ballot for it, which is
that one and the ballot for that one, which is the workspace answer.
OK, so if I take that where it will go.
Yeah it would go to dialoging but if I type CWD which means I return to the previous directory which
is where, which is the workspace, not the ballot for that.
Dorita so let's see.
Yeah.
Which is the workspace.
So actually this means return back to the previous current directory to the previous working day.
You've got me now.
So this is the difference between the dash and the date.
So far, so good.
You saw how we created the Diet and Delta.
OK, now it's time to remove the dial tool to or that one.
So let's go inside the dial one first and let's learn how to remove a directory.
So here you can see that the first thing I would use to combat either one would work fine.
But from my opinion, it is better to use the second command I would talk about.
So we have the dial.
This is to remove a directory.
But actually this command requires you that the directory is empty.
So you can see that inside that unless they are two, by the way, if I type this, it will list all
the content of this directory, which is the rule which is empty, by the way.
You can see and if I die like this and remove that two.
Yeah, you can see that it has been removed.
No problem.
OK.
So let's make a deal to another that let's make it again, OK?
Yeah, it is here.
Yeah, it's easier, as you can see now, actually, the second command, which is the thing I recommend
you or it is better for you, which is using the, um.
OK, so it is removed, so this actually removed files, remove link list, remove directories, whatever
it is, they remove directories recursively, by the way.
So you can see that if I removed that one, it will remove everything inside it no matter what, empty
and empty, whatever.
OK, but I will use that Desh are Comac and which is the port.
So I run to remove are recursively f force.
So remove the Diatta.
You can see it has been removed.
All right.
So far so good.
OK, no actually I want to talk about another thing here, so let's return back or before I return back
actually let's make a directory which is Diatta.
So to show you that if I remove it, if I move the dial, dial one.
You can see that, oh, no, directory is not empty, but if I type that RF dial one, you can see it
has been removed successfully.
So far, so good.
All right.
So far, so good.
No, I want to create a directory, dial one and they are two.
So if I typed make dial, dial one.
And if I put this to and by the way, this year, which is the forward slash in windows, it is the
opposite, which is that backslash in windows.
It is the backslash in Linux, it is the forward slash which is the symbol.
OK, if I take this you can see that no no such file or directory.
Which is what.
Which is the one as you can see, the other one is not existed for you to create it.
So you can, how can you create that tool while that one is not existed.
So we will use option using the McDow, which is the dash P.
The ISP option that be option used to create a directory or make directory, and if the parent is not
existed, which is in our case, the DOE one created, please.
OK, so let's type here.
Yeah.
So far so good.
This one has been created, so let's go inside it.
Yeah, first it's clear the.
Yeah, and inside that one, which is we have that tube.
Yeah.
Everything is working 100 percent.
All right.
Now let's see the here.
Actually, this is to return to the parent, which is the dad one.
But I don't need to go to the parent.
Which is the one I need to go to the workspace, how should I do this?
Well, actually, maybe you didn't know about it yet, but actually we can use that word again.
All right.
You got you got me.
You can use not just once.
Actually, let's have details.
Did the returns to that buried data of Diatta, which is Dylon.
OK, so if I thought here, here, which means return to the delta of Delta because of that one, because
currently after we execute that this command or this directory, if we after we go to this directory
to the parent out of Delta, which is the one, we will go to that there.
And there are three of that one, which is the workspace.
So this will return me back to the workspace.
So if I go here.
Yeah, you can see that I return to that workspace.
Actually, it is simple if you imagine it.
It is very simple.
A return to the delta of the delta, which is that one.
Then return to that Barrandov, three of the dead one.
Which is what?
So actually nobody this don't get confused.
It is very simple.
OK, and by the way, you will get used to it.
Don't worry at all.
Believe me on that.
I'm telling, you know, and as you can see, that we have that dial one as well.
OK, now we saw that by using the dial.
Dial one.
We couldn't remove it because it is not empty, because it has the day or two as well.
OK, so how to delete directories recursively?
So imagine I want to remove that one and everything inside it.
I would use this time the dash, the option.
OK, so if I typed it like this, you can see that it is not empty, but if I type the tool.
So actually this would remove everything.
So if I typed and you, you can see that they want that one has been deleted as well as there two,
which is as you can see that using Andale actually it is Sieff.
Yeah, it is safe somehow because imagine you have this very important directory and you want to delete
it, for example, after you archive it for example.
But you remember that you you didn't have it yet.
So using the R and R US is very dangerous in this case, by the way.
No, no, nobody do that actually.
Everything is automated currently.
So and if it is something important, you don't remove it.
So actually using the Kamdesh RF is better from my personal opinion than using the R on that.
Yeah, I know that is more safe because if you want to check if this directory is empty or not, you
can just put around it.
If it is not empty, it will not be removed, but it would remove everything no matter what by using
the have by the way, if option, which is false.
But actually it depends on what you prefer from my opinion or my opinion.
I prefer using our under-sheriff because actually you have a lot of work to do.
So it's not time to check this is empty or not.
I know it is empty by doing the last command like this.
So I'll unless the name of the data, which is that one, by the way, I already removed it.
So that one it will show everything inside that one.
As simple as that then.
Yeah I know it will, we will have a shortcut.
Instead of doing that we can do the that whatever.
OK, so it's up to you what you prefer.
But I'm telling you, I'm teaching you every commands that used here for you as a developer or as a
developer or.
Thanks for watching.