Brief analysis of Linux directory structure

xiaoxiao2021-03-05  25

Brief analysis of Linux directory structure

Linux inherits the clear characteristics of UNIX operating system. The file structure under Linux is very organized. However, the above advantages can only be realized when it is quite familiar with Linux. Now, you will briefly introduce the directory structure under Linux.

/ vmlinuz We already know that every Linux has a kernel (VMLinuz), we add a module that can complete various specific functions on this kernel, each module is embodied in various Directory in Linux. Of course, a variety of different distribution kits have a small difference, but the main structure is the same. We also have to combine Linux's functional modules and various applications so that your Linux system can serve you. Store in / vmlinuz directory is the kernel of the system. Remember that when we configure LILO, do you mention this kernel?

/ bin is obvious, BIN is binary (binary) English abbreviation. In a general system, you can find Linux common commands in this directory. In some versions you will also find some of the same directorys in the root directory.

/ boot is stored in this directory that is used in the system startup. We will use some of the information here when using LILO to guide Linux.

/ DEV DEV is an English abbreviation of the device. This directory is important for all users. The external device used in all Linux systems is included in this directory. But here is not the driver of external devices. This is different from our common Windows, DOS operating systems. It is actually a port accessing these external devices. We can easily access these external devices, and access a file, there is no difference in a directory. For example: We type in the system: CD / dev / cdrom We can see files in the CD-ROM drive. In the same way, we typed: CD / dev / mouse can look at the relevant files of the mouse. In this directory, there is a NULL device, which doesn't make anything. If you write files or content to this directory, they all have no return.

/ CDROM This directory is empty when you just install the system. You can hang the CD-ROM file system in this directory. For example: mount / dev / cdrom / cdrom

/ etc ETC This directory is one of the most important directories in the Linux system. The various configuration files and subdirectories to be used in the system management are stored in this directory. We have to use the network profile, file system, x system profile, device configuration information, setting user information, etc., all in this directory. In the future, the insects also explain in detail in this directory.

/ SBIN This directory is the system management program used to store system administrators.

/ home If we create a user, the user name is "XX", then there is a corresponding / home / xx path to store the user's home directory in the / home directory.

/ lib lib is library English abbreviation. This directory is used to store system dynamically connect sharing libraries. Almost all applications use shared libraries in this directory. Therefore, don't easily do what operations on this directory, once your problem, your system can't work, you don't say that the worm does not remind you.

/ Lost Found This directory is empty in most cases. But if you are working suddenly, or if you don't use it normally, when you restart your machine, some files can not find where you should store, for these files, the system put them in this directory, A temporary accommodation is provided like a homeless person.

/ MNT This directory is also empty in general. You can hang other file systems in this directory.

/ PROC can get system information in this directory. This information is generated by the system itself in memory. / root If you are logged in as a super user, this is the home directory of the super user.

/ TMP is used to store temporary files generated when different programs are executed.

/ usr This is the largest directory that occupies a hard disk space in the Linux system. Many users' applications and files are stored in this directory.

转载请注明原文地址:https://www.9cbs.com/read-33542.html

New Post(0)