Linux file system explained
1. / (The root folder)
This is the top-level directory and it contains all the other directories.
binaries or executables that are essential to the entire operating system.
The code for commands such as gzip, curl, wget, ls, etc that we use via shell is inside this directory.
It contains system binaries that should only be executed by the root user like mount or deluser(delete user).
The binaries inside the bin/ and the sbin/ folder share some common libraries that are stored inside the lib/ folder.
This contains the data related to the user like this has its own bin/ folder that contains the executables that are available only for the current user.
The user/ folder also has a local/ folder that also has a bin/ folder to store the binaries that are compiled by the user.
This folder has text-based config files to edit the software settings of the software that are installed on the system.
This folder contains a folder on the name of each user that is registered on the system.
The user can modify the files that are inside his folder and not any other folder.
The folder home/ is also denoted by
This folder contains the files that are necessary for the system to boot.
This folder represents the hardware. This folder contains the files that represent hardware.
This folder contains the variable files that will change as the operating system is in use.
This folder is to store temp files.
This folder does not exist on the disk and is created on the fly as the OS is booted up. This helps to keep track of the running processes.
Did you find this article valuable?
Support Harshit Saini by becoming a sponsor. Any amount is appreciated!