In this article, we explain the folders in the Linux file system and their functions.
Folders in the Linux file system, especially Linux It has been a matter of curiosity for those who are new to the universe. There are folders with very different names compared to other operating systems. With this article, we will eliminate all the question marks in your mind about these folders.
Why are the folders and structure of the Linux file system different compared to Windows and macOS?
To answer this question, we must first look at the history of Linux. Linux, From UNIX It was written inspired by and UNIX It is an operating system designed taking into account that hundreds of users will be connected to a computer that occupies room size in the 60-70s. In those years on computers gigantic and more than one Storage units such as tape drives were used.
This system is now on our computers and even on our mobile phones and these modern devices have one or two storage units. But we can perform the same functions as computers of years ago. So too UNIX principle it is still valid and works faster as computers speed up.
Linux folders overview
Seeing these folders on a diagram will help us understand their functions better.
To make changes to folders other than the root directory and the “home” folder, you need the root account privileges. You can use the “sudo” command for this, or if you are going to do a long process, you will use the root account’s privileges as long as the terminal is open by typing “sudo su”.
Our root directory UNIX and Linux systems root user We shouldn’t confuse it with (root, superuser). One is the directory containing all the files and folders, the other is the one that has all the rights of the system. user is the account.
As seen in the diagram above, at the top “/There is a directory named ”. This directory is our root directory. The root directory is the main directory in which all folders reside. Your entire computer, from devices to your documents, is under this directory. Because UNIXIn systems based on where everything is a file (everything is a file) principle has been adopted.
Inside this folder, what we have installed (or came with our system) applications are available. You can run these applications via the terminal or any menu.
Again like a “thousand” application folder but it contains system applications. Most known commands are the applications here.
It contains the files your computer needs to get started. Your Linux kernel, your bootloader and tools such as Memtest86 + are in this folder.
In the old days of Linux, it was a folder whose contents we could see when a CD was inserted into the CD drive, now only backward compatibility purpose is used with, because instead of “media”Folder is in use.
In this folder, connected to your computer devices exist. As you remember, in systems working with UNIX principle since everything is a file we mentioned.
This folder is especially useful if you are going to print data from one device to another device using the DD method.
Your configurations are hosted in this folder. A folder you will visit frequently whenever you want to change a setting.
Users such as documents, music, videos, pictures, desktop personal data is the hosting folder.
Folders starting with “lib”
These folders contain the library files. Like DLL system in Windows, in systems with UNIX architecture “shared library“There is a system.
When you install a storage unit automatically is the folder in which it will appear.
Some closed source code It is a directory preferred by software to host their own files.
Temporary files are found and usually deleted when the system restarts.
In this folder almost everything you are looking for you can find. Most things from icon packs to “shared libraries” are here.
Some users think that this folder is the user folder because of its name, but the user folder is not, “universal system resourcesAbbreviation for “(general system resources)”.
In this folder, you will be able to find files such as logs, backups. Some people prefer to put this in another segment.
If you want to work on Linux, it might be a good idea to start with UNIX basics. So you can have a general idea about operating systems.
If you have a question mark in your head, Technopat Social You can send your questions via.