Linux Interview Questions

Comprehensive Guide to File Hierarchy in Linux

Like every other operating system, Linux also consists of a defined file hierarchy, also known as the File system Hierarchy Standard (FHS). The File Hierarchy in Linux is maintained centrally by the Linux foundation and defines where should be the location of the files and what should be located inside those files. Mainly, the files in Linux are stored in the Root directory which can also be termed as the parent directory for the files. In this blog, we will be discussing some of the directories in the Linux file hierarchy.

In the meantime, if you are preparing for Linux, you can also see our list of Linux Interview Questions to help you with your preparation.

File Hierarchy in Linux

Root Directory

The Root directory is the primary directory in the Linux file hierarchy which consists of all the secondary directories. All the files can be found in the root directory even if they are stored at different locations. The root directory in Linux is represented with the used of forward-slash (/) and all the files and directories start from the root directory. Also, only the administrative user possesses the right to make any changes to the root directory.

Other Linux Directories

After the root as the primary file directory, other file directories which are included in the Linux File Hierarchy are:

· /bin/: Binary source code files

· /boot/: Static boot files

· /dev/: Device files

· /etc/: System Configuration Files

· /lib/: Shared library Files

· /home/: Home Directories

· /mnt/: mounted filesystem

· /opt/: Add on package for Application Software

· /media/: Media files (Removable)

· /sbin/: Binaries files for system

· /tmp/: Temporary files

· /srv/: System Service data

· /proc/: Process Information

· /usr/: user application files

Conclusion

So that was all in terms of the File Hierarchy in Linux. If you want to be a Linux developer, you can also visit Desktop Support Interview Questions which will help you prepare for the Linux operating system too.

Source Url- https://codingtag.wordpress.com/2019/09/16/comprehensive-guide-to-file-hierarchy-in-linux/