Linux Directory Structure
2K views
Nov 28, 2024
Linux Directory Structure
View Video Transcript
0:00
so into our previous video we have
0:02
discussed about the Linux distributors
0:04
we have seen some of the distributors of
0:06
Linux operating system now here in this
0:09
video I am going to tell you about the
0:11
Linux directory structures now what is
0:13
Linux directory structure now basically
0:16
in Linux operating systems keep
0:18
everything in completely different way
0:20
not like your Windows operating systems
0:22
like when you install the Windows
0:24
operating system you directly get your C
0:26
Drive D Drive and you can keep the data
0:28
into it but you don't know where the
0:30
system files are stored and where your
0:32
devices are located so as I said your
0:34
Linux is completely open source
0:37
so you can see everything well here
0:39
generally devices your programs your
0:41
configurations are stored so here we are
0:44
going to talk about your Linux directory
0:46
structures so delete selected structures
0:48
generally stores the data in two
0:50
completely different locations unlike
0:52
your windows so here everything is
0:54
stored as an file and folders even your
0:57
devices are stored into their files in a
0:59
sporadic Widger folders so the folders
1:02
has multiple sub directories sub folders
1:06
into that you also keep some of the
1:08
files so basically you should understand
1:10
what this folder contains because when
1:13
you install the operating system you
1:15
won't find any C Drive D do I eat right
1:18
or your my computer but everything you
1:21
will find that is your slash which is
1:23
called as front slash or a mount point
1:25
under that one point you will find a
1:28
different directories which we are going
1:30
to see over here will find a directory
1:32
called as slash bin slash bin is a
1:35
binary files so what are the commands
1:37
you are going to store will be located
1:39
into the binary file and all this
1:42
directories which you can see here are
1:43
generally created into the mount point
1:47
which is your front slash so this mount
1:50
point contains all the particular
1:52
directory each and every directory we
1:54
can see over here contains different
1:55
tasks and contains different contents so
1:58
very first we are going to talk about
1:59
slash pal
2:00
so whatever the commands generally you
2:02
have or you generally use like creating
2:05
a user creating a file creating a
2:08
directory everything will be stored into
2:10
this slash bin which contains all the
2:12
files for your
2:14
complete commands so basically when you
2:16
run the command this binary files get
2:18
worked and it provides you the output
2:21
the next we have that is slash boot so
2:25
like your Windows operating system you
2:26
might have seen some system reserved
2:28
partitions into the operating systems
2:30
like your Windows 7 contains that your
2:32
Windows 8 contains it as well as tens
2:34
container so what the system resolve
2:37
condition is it contains your booting
2:39
firm same here into the Linux operating
2:41
system we have all the booting files
2:44
installed into this particular directory
2:46
by default so when you install the next
2:49
operating system you will find the
2:50
booting files get loaded into the boot
2:52
and here the booting file is completely
2:55
different here you will find grub or
2:57
grub 2 as your booting firm and in
3:00
earlier version of your Linux operating
3:02
system
3:03
you used to also find Lillo operating
3:05
systems which we are going to discuss
3:07
later the third file which we have that
3:09
is your slash tape this directory
3:12
contains all the devices files like if
3:15
you have connected your hard disk if you
3:16
have created a partition entry to the
3:18
hard disk everything will be stored into
3:20
devices if you connect any particular
3:23
USB Drive if you do use a DVD Drive or
3:26
CD drive this will again be stored into
3:28
the devices so whichever the device you
3:30
connect either it isn't directly
3:32
attached devices or a removable or hug a
3:35
hot plug and play devices all will be
3:37
stored into slash tape next we have that
3:40
is /e TC now whatever the configuration
3:44
you do you define a host name you define
3:47
IP address you can figure some servers
3:49
like your FTP and I ass or any
3:51
particular servers all this particular
3:54
services all this particular settings
3:56
will be stored under /e TC so whichever
3:59
the configuration is all the
4:00
configuration file you will be finding
4:02
into / e TC the next directory which we
4:05
have that is slash home so slash home is
4:08
a directory which contains the home
4:10
directory of your users now we can see
4:13
multiple users or we can create multiple
4:15
users into the Linux operating systems
4:18
so when this users get login or the data
4:21
which they are going to create on their
4:23
desktops on their documents or any of
4:25
their directories
4:27
this will be created and saved into
4:29
these /home directory so if suppose I
4:31
have free ager a user with named user
4:33
one so the home directory would create a
4:36
separate folder for user 1 and whenever
4:38
the user will login this particular data
4:42
of this user 1 will be stored into slash
4:44
home slash user 1 directory so same way
4:48
for other user like your user 2 it will
4:50
create an under directory so none of the
4:52
user will be able to see each other's
4:54
data that generally is stored into the
4:57
home but it is basically only for your
5:00
standard users which is a non root or
5:03
non super users next directory which we
5:06
have that is slash lip so lip contains
5:09
all the library files not if suppose you
5:12
want some help if you want to get some
5:14
help regarding any particular command or
5:17
how to configure that particular come on
5:19
or you can see the parameters 1d
5:22
parameters we have for a particular
5:23
command all the help option you get into
5:25
the library the next we have that is
5:28
called as a slash media so slash media
5:31
is basically a directory created so that
5:33
you can find this particular hot plug
5:36
and play devices automounter Dover here
5:38
now basically in previous organization
5:41
we never used to have the slash media
5:43
but now we have this last media so that
5:46
it is easier for the users to work on
5:48
the desktop of any of the Linux
5:50
distributors so that if they connect any
5:52
hot pluggable device like your USB or
5:55
you connect a DVD drive directly it will
5:58
be mounted on your desktop means if you
6:00
will be seeing it on your desktop
6:02
because it is by default stored and
6:05
located in to slash media directory next
6:09
we have that is /opt so all the
6:11
optimized status whatever you have that
6:14
will be stored into these /opt next we
6:17
have that is called as a slash bin so
6:20
slash bin is a super bill now all here
6:23
we had discussed about the bin when I
6:25
have told you it contains all the binary
6:27
files but this binary files are only for
6:30
these standard users like if I want to
6:32
create a new user using a particular
6:35
standard user I won't be able to do that
6:37
when you have the same thing into
6:39
Windows operating
6:40
right from a standard user you cannot
6:43
create a new user because it's
6:45
completely command are stored in two
6:47
different location even in Windows and
6:49
even in the Linux operating system
6:51
so basically when the basic user or we
6:54
can see a standard users get logged in
6:56
they generally exist slash pin but what
6:59
if about your super user super user is
7:02
nothing but a root user root user is
7:05
just like an administrator you have into
7:07
the windows so this particular user root
7:10
user have access to everything he can do
7:12
everything into the Linux operating
7:14
system he can modify anything he can
7:16
create anything he can configure
7:18
anything or delete anything so this
7:20
super user use this /s bin for storing
7:25
its all the particular binary file and
7:27
what are the commands is going to use
7:29
will be pulled by this particular binary
7:31
folder itself now next we have that is
7:35
called as a slash SRV so all the service
7:38
related data with services are on which
7:41
services are started on the boot or
7:43
which services are stopped all this
7:45
particular data you will find into slash
7:47
SRV the next directory which we have
7:50
that is your slash stamp you may be
7:54
knowing about the temp directory so if
7:56
suppose you are doing some temporary
7:58
tasks like you are copying a DVD from
8:00
one drive to your hard disk or you are
8:03
creating a DVD DVD images okay so if you
8:07
are using the DVD DVD image
8:09
it can produce tours the data into your
8:11
RAM for a particular period of time so
8:14
that it stores into this /t EMP folder
8:17
into your windows and here we have a
8:20
slash temp so whatever the temporary
8:22
files you want you can store into the
8:24
temp once your system is rebooted this
8:26
particular files will get flushed out so
8:29
that's the reason they are called as a
8:30
volatile storage for your Linux
8:34
operating system the next directory
8:36
which we have that is your slash USR so
8:39
slash USR contains all the user programs
8:42
now for example you have installed some
8:44
package or you have downloaded some
8:46
program into your Linux operating system
8:48
all the particular files of that
8:51
particular program will be stored in to
8:52
slash USR
8:54
you sir will create all the samples
8:57
files of that particular program so if
9:00
suppose you do not know how to configure
9:02
particular server or particular program
9:04
you will be having those particular
9:06
sample files pre-configured into the
9:09
/usr you can get the data you can copy
9:12
those particular files into /et see
9:14
where we keep all the configuration and
9:16
configure it so /usr contains all the
9:20
particular programs applications tools
9:22
and the services which you've installed
9:26
data will be stored into it the next
9:28
directory which we have that is your
9:30
slash bar it contain all the variable
9:33
files so basically what our variable
9:36
files variable files or variable data
9:39
are those things which are only changed
9:41
like for example I can say you have
9:44
defined an IP address to your machine on
9:46
a dynamic way so dynamic way means it is
9:49
going to change whenever this server
9:51
releases this particular IP address so
9:53
you might have seen when you connect
9:55
your wireless devices your IP changes
9:57
same way if you Mike you can see about
9:59
your DNS if you know about DNS Janus is
10:02
a domain name system it contains all the
10:05
hostname of all the particular systems
10:07
which are connected in your particular
10:08
domain so if a domain name changes or if
10:12
your IP address of your local host
10:13
changes it automatically replicate or
10:16
change that into it okay so those data's
10:19
be generally vary which you not which
10:21
are not constant are generally stored in
10:23
to slash work the next directory which
10:26
we have that is slash wrote basically
10:29
slash suit is a home directory of your
10:31
super user root slash home contains this
10:35
standard users home directory but root
10:37
stores its complete data into a
10:39
different directory called as / root the
10:42
next directory which we have /proc so
10:45
this prop contains the information about
10:47
the devices you have connected and their
10:49
process now for an example my memory
10:52
which I've connected that actually is
10:54
used by your system so we can see
10:57
whether this memory is completely
10:58
utilized or not what is the process what
11:01
is the progress rate of the you know the
11:04
RAM which we are using what is the
11:06
service which we are using what is
11:07
eight of it what is the utilization of
11:10
your different devices different
11:11
resources connected to in their system
11:13
you can get all the information into
11:15
/proc so basically the last directory
11:18
which we have that is called as a loss
11:20
plus found so lossless found is a
11:23
directory which we have into all the
11:25
distributors
11:26
now this particular directory contains
11:28
the data which is misplaced like we do
11:30
not have a proper location where it
11:32
should be stored so those particular
11:34
data by default moves into your loss
11:36
plus form so this is the directory
11:38
structure of your Linux now if I am
11:40
going to add any device I'll be adding
11:42
into the day if I want to add anything
11:45
into the media I can add directly into
11:49
the media or if I connect into the
11:51
machine my pendrive or my infant's AVD
11:54
all do automatically it will move into
11:56
your slash media so basically we will be
11:59
working as we use into the Windows
12:01
operating system but in back-end your
12:03
data will be stored in two different
12:04
places this is what we have seen about
12:06
the directory structure into the next
12:08
videos we are going to explore more of
12:10
your Linux operating system
#Computer Education
#Computer Science
#Directories & Listings
#Operating Systems
#Programming
#Software