File structure
/:root directory, all directories, files, devices are in/below,/is the Linux file system Organizer, is also the most superior leader.
/bin:The bin is the binary (binary) abbreviation. In the general system, you can find the common Linux commands in this directory. The commands required by the system are located in this directory.
/boot:The Linux kernel and the file directories required for the boot system program, such as the Vmlinuz initrd.img files, are located in this directory. In general, the GRUB or LILO system Boot Manager is also located in this directory.
/cdrom:This directory was empty when the system was just installed. You can attach the optical drive file system to this directory. Example: Mount/dev/cdrom/cdrom
/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 the common Windows,dos operating system. It is actually a port that accesses these external devices. It is very easy to access these external devices, and to access a file, a directory without any distinction.
/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. To use the network configuration files, file system, x system configuration files, device configuration information, set up user information, etc. are in this directory.
/home:If a user is created, the user name is "xx", then there is a corresponding/home/xx path in the/home directory, which is 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, the system will not work.
/lost+found:In the ext2 or ext3 file system, when the system crashes unexpectedly or the machine shuts down unexpectedly, some file fragments are placed here. When the system starts, the Fsck tool checks here and repairs the corrupted file system. Sometimes problems with the system, a lot of files are moved to this directory, may be repaired in a manual way, or moved to the original location of the file.
/mnt:This directory is generally used to store mounted storage devices, such as the CDROM directory. You can see the definition of/etc/fstab.
/media:Some Linux distributions use this directory to mount the USB interface's removable hard drives (including USB sticks), CD/DVD drives, and so on.
/OPT:Here the main storage of those optional programs.
/proc:System information can be obtained in this directory. This information is in memory and generated by the system itself.
/root:Home directory for Linux super User root.
/sbin:This directory is used to store system administrator's system management program. Most of the commands involved in system Management, is the super-user root executable command storage, ordinary users do not have permission to execute this directory commands, this directory and/usr/sbin; The/usr/x11r6/sbin or/usr/local/sbin directory is similar, and the directory sbin contains root permissions to execute.
/selinux: SELinux can make Linux more secure with some profile directories for SELinux.
/srvAfter the service starts, the data directory you need to access, for example, the WWW service start reading the Web page data can be placed in the/SRV/WWW
/tmp:A temporary file directory that is used to store temporary files that are generated when different programs are executed. Sometimes when a user runs a program, a temporary file is generated. /tmp is used to store temporary files. The/var/tmp directory is similar to this directory.
/ usrThis 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. In this directory, you can find additional tools that are not suitable for use in/bin or/etc directories.
/usr/local:The main store is the software that is installed manually, that is, software that is not installed through "new" or apt-get. It has a similar directory structure to the/usr directory. Let the package Manager manage the/usr directory and put the custom script (scripts) under the/usr/local directory.
/usr/share:The system is common to store things, such as/usr/share/fonts is the font directory,/usr/share/doc and/usr/share/man Help files.
/var:The contents of this directory is constantly changing, see the name to know, can be understood as vary abbreviation,/var under/var/log This is used to store the system log directory. The/var/www directory is the directory where the Apache server site is defined, and/var/lib is used to store some library files, such as MySQL, and the location of the MySQL database. --Excerpt from Baidu Encyclopedia
Linux file structure