A brief analysis of Linux directory structure

Source: Internet
Author: User

A brief analysis of Linux directory structure

Linux inherits the distinct features of the UNIX operating system structure. The file structure under Linux is very organized. However, the above advantages can only be realized when you are quite familiar with Linux. Now, the worm will simply introduce the directory structure under Linux.

/vmlinuz
We already know that every Linux has a kernel (vmlinuz), and we add modules to this kernel that can do a variety of specific functions, each of which is embodied in various directories in Linux. Of course, different distribution packages have small differences in their catalogs, but the main structure is the same. We'll also combine the Linux functional modules with a variety of applications, so that your Linux system can serve you. The kernel of the system is stored in the/vmlinuz directory. Remember when we configured Lilo to mention the kernel?

/bin
Obviously, bin is the binary (binary) abbreviation. In the general system, you can find the common Linux commands in this directory. In some versions you will also find some directories in the same directory as the root directory.

/boot
In this directory is stored in the system to be used to start the program. When we use Lilo to boot Linux, we use some of the information here.

/dev
DEV is the acronym for Devices. This directory is important to all users. Because this directory contains all the external devices used in the Linux system. But this is not the driver for the external device. This is not the same as our usual Windows, DOS operating system. It is actually a port that accesses these external devices. We can easily access these external devices, and access a file without any difference in a directory. For example: We type in the system: Cd/dev/cdrom we can see the files in the CD-ROM. Similarly, we type: Cd/dev/mouse can look at the mouse related files. In this directory, there is a null device, and the thing itself has no meaning. If you write files or content to this directory, they all have no return.

/cdrom
This directory is empty when you just installed the system. You can attach the optical drive file system to this directory. Example: Mount/dev/cdrom/cdrom

/etc
Etc This directory is one of the most important directories in the Linux system. This directory contains the various configuration files and subdirectories to be used in system administration. We need to use the network configuration files, file system, x system configuration files, device configuration information, set up user information, etc. are in this directory. Later, the worm will also explain in detail the contents of this directory.

/sbin
This directory is used to store system administrator's system management program.

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

/lib
LIB is the English abbreviation of library. This directory is used to store the system dynamic connection shared library. Almost all applications use shared libraries in this directory. Therefore, do not easily do anything to this directory, once the problem occurs, your system will not work, then you don't say bug didn't remind you ah.

/lost+found
This directory is empty in most cases. But if you are working suddenly with a power outage, or you are not shutting down normally, some files will not be available when you restart the machine, and for these files, the system places them in this directory, as if providing a temporary shelter for homeless people.

/mnt
This directory is also empty under normal circumstances. You can temporarily hang other file systems in this directory.

/proc
System information can be obtained in this directory. This information is in memory and generated by the system itself.

/root
If you are logged in as a superuser, this is the Superuser's home directory.

/tmp
Used to store temporary files that are generated when different programs are executed.

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

A brief analysis of the Linux directory structure

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.