Professional Documents
Culture Documents
Directory Structure (A00127469)
Directory Structure (A00127469)
P.T.O
There are total 18 sub directories and 1 file in our root
directory.
/media
/opt /
runn
1. Root directory
Root directory is the ultimate parent directory all the other directories and
subdirectory.
In the root directory all the other directories are like branches that’s why it is
known as tree like structure.
Only root user can access to the other sub directories in the root while other
user can only login into their user account under home.
To show it is at top level, it has given special symbol “/”.
The sub-directories which are branched off from the root directory are
mentioned above through diagram and screenshot which is discussed in
upcoming parts.
It is also known as hierarchy system because there is hierarchy of levels of
directories where root directory is at highest level.
2. /bin directory
Bin stands for binary. This directory contains many basic Linux commands.
All the files in this directory is executable.
These files contains the text which only computer can understand, in other
words the files are programmed for the ease of user so that whatever user
wants to perform a particular command then user have to simply type that
command and to make computer understand there is special type of coding is
running behind that command, that all coding is present in this directory with
the name of that command.
There are more than thousands files in /bin.
Let’s see coding of one file in bin directory :-
Coding in vi passwd
3. /boot directory
4. /dev directory
As in Linux devices are also known as files, so this directory contains
the devices files.
It contains number of special files which represent devices such as
ttyS104, tty0, etc.
These are neither normal files nor the directory but they appear as files
even we can’t access to these device files.
This directory also contain pseudo devices which are virtual devices in
actual that doesn’t represent to hardware such as null, random etc.
5. /etc directory
This directory contains configuration files which are used to control the
operation of a program.
Mainly it contains the system-wide configuration files while user
configuration files are in home directory.
It is also treated as nerve centre of Linux machine.
6. /home directory
Home directory is similar to our homes where we reside.
It contains the user’s data files as well as user configuration files are
hidden in above snapshot along with this it have our user account in it
such as mehakpreet_kaur.
Every user have access to this directory while to access other
directory user require elevated permissions to modify other files.
7. /lib directory
9. /mnt directory
/proc stands for process. This directory contains the files of process and kernel
process.
As /dev directory it also contains special files named ad pseudo files that
contains process and system information.
These files are automatically mounted by the system when required but we
can also manually mount these by using the specific command.
This directory even contains the information related to our system. For
example :- information related to our C.P.U under stat file, information about
version of linux and windows under stat.