"Come to Baidu Encyclopedia" Linux file structure

Source: Internet
Author: User
Tags system log

File Structure/: root directory, all directories, files, devices are in/below,/is the Linux file system Organizer, is also the most superior leader. /bin: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. The/boot: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 is empty when the system is just installed. You can attach the optical drive file system to this directory. For example: Mount/dev/cdrom/cdrom/dev:dev is the abbreviation for device. 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 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 store thatOptional programs. /proc: System information can be obtained in this directory. This information is in memory and generated by the system itself. /root:linux the home directory for Superuser 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&NBSP: For some of SELinux's profile directories, SELinux can make Linux more secure. /srv  service startup, the required access to the data directory, for example, the WWW service start reading the Web page data can be placed in the/SRV/WWW/tmp: Temporary file directory, used to store different program execution of the temporary files generated. 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. /usr This is the most disk-intensive directory in a Linux system. 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: This is mainly for those manually installed software, that is, not through "new" or Apt-get installed software. 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: Things that the system uses to store, such as/usr/share/fonts are font directories,/usr/share/doc and/usr/share/man Help files. /var: The contents of this directory are 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.

"Come to Baidu Encyclopedia" Linux file 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.