Hello, beautiful people, and welcome to accessing Linux filesystems file systems that we already know
is a structured way where all the files and directories are stored and what are the different type of
Linux file systems?
There are two, three, four Zephyrs, so there are quite a few file system in Linux or in Pacifically
in RedHat or S.O.S.
That's how they the files and directories are saved.
To access those files, we need some kind of navigation tools and following are basic tools or commands
that are used to access the files that are saved in these file systems.
Some of them are less, which we have already covered, but will go through it really quickly, will
skim through it.
So else, which is a list, a CD to change directory PWP is to print a working directory as to exactly
where you are right now.
D.F. is to list the file system on disk and EU is to disk usage.
The file system, if you wanted to know the disk.
Where is it used?
Which again, we have covered, we will go through a really fast just as a quick reminder or a quick.
Then we have F.
Then we have desu, which is a disk utilization again, we have covered these already, but I'm covering
it again and again.
I'm doing it very quick.
Just as a refresher, since we are on the topic of accessing the Lennix file systems, then they will
cover a new command, which is the F a disk.
That is the command that is used to create file system or create protections.
Then we will cover the absolute and relative path.
Absolute path always begins with slash.
And what what what is the difference between both will cover that will also cover how we could use.
Tilde, are the the symbol that you have right above the tab key.
How we could use it to navigate the file system.
And the last one we have dot and dot dot.
We could use that with our CD command to navigate the file system.
All right.
So let's get into a Linux machine right here.
I have the terminal open.
Let me track this down a little.
OK, now the very first thing we will learn is the US command, which we have covered before.
So else, if running without any option will give you the list of all the paths and directories.
And in this case, it's giving me because I'm in the GUI based system concealed and is giving me Billu
for directories and noncollege is simply wait for files.
So if you wanted to see this list in a column, then you do list minus L, so you will see it give you
more information.
The first column is about the permission, the second column about links it has.
Who owns it, which group owns it.
This is a size month date time and the name of the file or a directory.
There are many different options that you could use with URLs and that is that can be used to list the
files that you have in your directory.
You could do less or else LTA for time.
If you wanted to see the the newest file on the top and the old file at the bottom, then you could
do Ellesmere's LTE if you wanted to see that same thing in reverse or you use S minus lte r.
So anyway, this is how you list the files that is inside of your directory.
The next command we have KDDI, which is how you could change directory.
So I if I wanted to go inside of this directory.
So this is a directory, how do we know this directory.
Because it has D right here in front of it.
And I could go into this directly by simply typing D sorry CD and downloads.
I am already in that directory now.
I could do URLs to see what's inside of there.
There's nothing inside of actually says total zero.
I could go back if I wanted to go back.
How do I go back.
That is something that I was going to cover at the end.
But as we are going through, I'm going to probably going to change our go to one or the other.
The order doesn't matter.
So anyway, if I wanted to go back one directory, I could do it.
Dot, dot.
It's going to take me back to that directory.
Now, the next command that I'm going to cover is P.
W.D., which we covered earlier again, which is P print working directory.
This tells you which directory you are and I am in route directories.
If I wanted to go to my home directory, which is I have Zoll directory, I don't see it because I'm
not logged in as myself.
Who am I logged in.
I logged in as a route.
So if I want to go to Isel directory then I have to go to KDDI slash home with Shakuri.
I mean I'm in slash form home.
And what are the files and directories inside of that directory.
I could do this myself.
I'll see.
The directory inside of home has another directory called Afsal.
I wanted to go into I was allowed to CDI Absol and now we're stuck triggermen.
I'm in slash slash IOPS.
I'll do a minus L again to see what other files and directories I have inside of my afsal.
And these are the directories and files.
OK, this covers ls cd PWP.
Next one is D.F..
Which IDF minus H.
This is something that we used earlier, this gives you the file system the size the used available
to use it in percentage and where is it mounted at?
The next one is due disk to use it to buy files you hit enter.
You're going to get the list of all the files that you have in your file system and it will give you
the size of each file.
OK, then we have F disk.
This is the new command F disk allows you to actually create disk in the next section.
In our H1 34, we will use this F disk to create a standard partition will create the LVM partition
amounted to turn the partition.
And there are a few things that we will do in the next section.
But for now, to show you what is the functionality of F disk, we will run F disk.
And this one just you cannot just run it by itself.
You have to specify the option and the best option to specify F minus L, this is going to list all
your file system and where is it mounted.
So let's start from the top right here.
I ran this command f disk is telling me I have a disk, which is its name is Dev SDK and it is twenty
gig and bytes and sectors, units and then sector size IO size, a disk label disk identifier and then
is telling me I have to partition on disk disk SDK.
One of those partition those predictions are Dev as the one and Dev as D2, DSD one is two gig and the
dev as the gig is the bigger size which is almost nineteen gig.
When you convert that into kilobyte or so megabytes, it's going to equate to this number and it's telling
you the type file type right here as Daewon is Lennix, Azita is Linux, LVM.
Why there's LVM on this one and why not on this one is because SD one has been mounted on slash those
check F minus H C right here SD.
Deb, as Daewon has been mounted on that boat and for that boat, you don't need LVM or some time to
swap space that's carved out, you don't need Eliopoulos system.
This one is LVM filesystem.
That's why it has this starting depth map.
All right, let's clear the screen, go back to disk again, and I'm going to just do simply more.
OK, so now coming down right here is telling you after these partitions give you more information right
here.
This is the LVM information.
That is the name of LVM that is on this device as as.
This is the actual name.
But when you configure it on LVM, what is LVM will cover that later.
This allows to give you a quick, quick information.
LVM allows you to create redundancy within your file system.
All right.
For this dev map, his information is telling you and for the swap space.
This is telling you, this is Tulga.
If you wanted to create a new disk, let's say if you attach a new disk to your.
To your Linux operating system, then you would come in here and run F disk.
And then you have to specify the name of the desk, which is would be Deve as the slash as as DBI in
this case be because as DE's already taken and once you run it, then it will give you more option.
How you capitation that desk.
All right.
Moving on to the next one, which is absolute path and relative path.
McLeese the screen absolute pat is something that you could KDDI into it by specifying a complete path.
For example, right now I am in slash home and slash afsal.
If I hit KDDI hit Enter.
And right now it's going to take me to the root home directory, which is slash.
Now what if I wanted to go to slash home slash I Opsahl and slash desktop for example.
One way to do that as you go cd slash home hit enter do which you are in your own home.
What's inside it's of all.
Then you go against CD Afzal, then you go against CD desktop.
That's how you come and enter or CD into slash home slash leaves all slash desktop.
This type of mechanism going from one directed to another directory.
That is a relative path.
Now if you wanted to go directly to Ive's all directory, then the CD into the CD first again.
Then you go to Chris home.
I absol I was all dressed up, now you're going straight into that directory.
It's so I am missing El.
There you go, so now I'm going straight into that directory, here it is.
See, this is the directory.
The next one is Mattilda.
So let's say I am in that directory.
If I do say CD, just Tilde, then tilde means that go to my or this usit that is logged in, go to
its home directory.
If you do you see right here is giving you a home.
If you do not type tilde, you just type KDDI, it will still bring you to your home directory.
And the last thing that something some of the things that I've covered dot and dot dot.
So if you do dot it will keep you in the same directory.
But if you do, let's say if you go home, I have Sol.
Slash.
Um, desktop, then you could do CDs, bring you one step back, CD, one step back.
KDDI, dot, dot, one step back and there you are, you are at home, so that's you like coming back
in a relative pathway.
So these are the file.
These are the commands that you need to access Linux file system.