Hello and welcome to the second part of the Linux File system Tutorial.
In this tutorial we will be discussing these 4 directories of the Linux File System Structure.
home , initrd , lib , lost+found .
So lets Begin....
1. home
To view the home directory type ls home/
Thic command will show the user in the home structure.Actually this will also be the home directory for the user from whom you are logged in.
for Eg: i am logged in as nishant so its showing me nishant as the user. i.e nishant is my home directory.
to check you can type : whoami
this command will tell you how we are logged in and with what privileges.
For Eg:
[root@nishant/]#
here user nishant is logged in with the root privileges.
but for the most part when you create users on the system a home directory will be created for them within the home directory.
i.e
/home/<username>
Eg:
/home/nishant
if we had created a user with the name nishant.
Note: We know that it is getting messup and complicated so we advise to do the practical of the tutorial to understand it more clearley.
2. initrd
This Directory is actually Red-Hat Specific. So there is some deviation from the file system hierarchial standard.
This particular entry should not be removed by anyone on the system it is temporarily mount when the system is booting for a RAM disc.
When the system Boots Red-Hat Linux Temporarily mounts areas in the memory to this particular location on the disc.
To see we can do ls initrd/
Here we can see that this directory contains nothing and its empty because it is already occupied when the system boots.
Some Examples of the initrd commands are:
init0 , init6 etc
3. lib
lib directory contains shared libraries . To see this directory
ls lib/
This command will show you all the libraries .
Eg: lib SSL , lib SSH , lib crypto etc
Note: You can consider these lib directories equivalent to the windows operating system's "DLL" management.
4. lost+found
Lost and Found directory is exatly what its name tells. Its has fragmented portion of the hard disk,lost files etc.
To see this Directory:
ls lost+found/ -all or ls lost+found/
Note: If you find this directory empty then don't panic it does'nt means that your system is suffering this means that your system is working great. Because Finding enteries in this directory means that your system may have the fragmentation problem, Which may lead to the potential Disk Problem or other kind of problem. etc.
These Directory is only for you to locate the files which has been fragmented or accidently deleted or not fully deleted and like wise.
So here we come to the end of the the second part of the tutorial....hope you all are liking and most of all understanding the tutorials....see we know it is quite difficult to understand the tutorials without a video training material, so we advise that keep doing the tutorials as the commands are stated ..... you won't be needing any of the video tutorial then...
Keep doing the Practicals....!! It will help you alot...!! :D :D :D

Comments
Post a Comment