Today to talk about Linux file and directory structure, can be summarized in one sentence: Everything Linux all files.
The following are some of the major Linux directory:
Here are more details of each directory structure is used to do.
Directory Structure | Explanation |
---|---|
/bin (/usr/bin、/usr\local\bin) | Binary is the abbreviation This directory is the most frequently used commands |
/sbin(/usr/sbin 、/usr/local/sbin) | s is the Super User's meaning here is stored in the system management program used by system administrators. |
/home | General store user's home directory, each user has its own directory in Linux, usually the name of the directory user account is named. |
/root | The catalog for the system administrator, also known as super user's home directory permissions persons. |
/lib | Power systems need the most basic dynamic link shared libraries, its role is similar to Windows in the DLL file. Almost all applications need to use these shared libraries. |
/lost+found | Under normal circumstances this directory is empty, when the system illegal shutdown, some files stored here |
/etc | All of the systems management needs of configuration files and subdirectories |
/usr | This is a very important directory, many applications and user files are placed in this directory, program files directory under similar windows. |
/boot | Here are some of the core stored in files that are used when you start Linux, including some connection files and image files, do not put your installation here |
/proc | This directory is a virtual directory, which is the system memory map, we can get system information directly access this directory through. |
/srv | service abbreviation, the directory to store some of the data to be extracted after the service starts |
/sys | This is a core linux2.6 great changes. In this directory a 2.6 kernel file system sysfs emerging Installation |
/tmp | This directory is used to store temporary files. |
/dev | Similar to the windows device manager, all the hardware in the form of file storage |
/media(centos6) | linux system will automatically identify some devices, such as U disk, CD-ROM, etc., when the identification, linux identified device will mount this directory. |
/run | Temporary files generated by the process, the virtual machine load the disc image: / run / media / root / directory |
/ mnt | The system provides this directory is to enable users to temporarily mount other file systems, we can use an external storage mount / mnt /, and then enter the directory where you can view the content. |
/opt | This is for the host to install additional software placed in the directory. For example, you install a ORACLE database you can put this directory. The default is empty. |
/usr/ocal | It's another to put the host software to install directory. Usually by compiling the source code of the program installed. |
/where | This directory contains a constantly expanding with something we were used to modify those directories are often placed in this directory. Including various log files. |