Exploring the Linux File System: A Detailed Overview

Search for a command to run...

No comments yet. Be the first to comment.
India at the Crossroads of Global Power Plays

Key Insights and Takeaways from "Designing Data-Intensive Applications" Book

Master the design of scalable distributed systems capable of handling high traffic

15 Techniques to refine code

What is Git and Github? Git is a distributed version control system that is used to track the changes (different versions of the software) made by many different people (distributed) to the repository (where the software is stored) of the software. I...

The Linux file system is nothing but a structure in which all of the files are stored on a hard disk. The main goal of the file system is to keep all the files and folders organized inside the hard drive. The Linux File System follows the Filesystem Hierarchy Standard (FHS) which defines the structure and layout and is maintained by the Linux Foundation.
Linux file system is case sensitive which means that the file âtest.txtâ and âTest.txtâ they both will be treated as two different files by the Linux file system. But in Windows, thatâs not the case. The Windows file system (NTFS or FAT) will treat these files as a single file.
There are various directories inside the Linux file system. To open the file system on to your Linux machine you just have to open File Explorer and select âOther Locationsâ in the left-hand side section.

The â/â represents a root. Anyone can view this directory but only the root user will have the rights to make any modifications. Inside this, there are various directories (folders) and each of these directories is used to store a specific type of data. For example: /bin is used to store binaries or /media is used to show mounted devices, etc. All the directories which are present inside the root directory (â/â)are listed below.

/bin
The bin is short for binaries. It contains all the binary files for the applications.
/sbin
It contains all the system binaries that a system administrator will use. A standard user wonât have access to this without permission.
/boot
This is a very important directory that you donât have to play with because it contains all of the files which an operating system needs to boot. Your operating systemâs bootloader lives here.
/cdrom
/dev
All the devices of the computer will be listed here. It consists of a mouse, keyboard, etc.
/etc
It is also called as âet ceteraâ meaning this folder is where all of your configurations which are system-wide like apt, source.list, etc will be stored.
/lib32 and /lib64
These are where all of the libraries are stored.
/mnt and /media
âmntâ stands for the mount. All of the devices which are mounted manually will be displayed here. Media directory contains devices like the USB, cdrom, etc.
/opt
âoptâ stands for optionals. It is where all of the proprietary programs like google chrome, team viewer, etc are stored.
/root
This directory is the root user directory. Donât get confused with the â/â and â/rootâ they both are two different things.
â/â represents the root directory of the Linux file system or the entry point from where the Linux file system starts. And â/rootâ is the root directory for the user who has root privileges. You need to have root permission to access the â/rootâ directory.
This directory is used when we have a server running on our system. So, all the files of services data can be accessed here.
/sys
This directory is used to interact with the kernel. The data available here is not physically written to the disk. It is created every time when a system boots up.
/tmp
It contains all the temporary files. All the applications which are running on the system use this directory to store temporary data. We lose all of the data present in this directory when we turn off our computer.
/usr
All the applications which are installed by the user will reside here. It is also known as âUnix System Resourceâ.
/var
var is a variable directory. It stores information related to the system log files, system crash reports, etc.
/home
The home directory is where all of the users and there files and folders will be displayed. The most popular folders which a user regularly uses like Documents, Desktop, Downloads, Pictures and so on, all of them reside here.
This was the explanation for the Linux file system. If you have any questions regarding this then you can ask them in the comments section below.
Thanks for reading and if you like the content then support us on Patreon. Your support will surely help us in writing more of such content.