Hierarchy Standard Filesystem (Filesystem Hierarchy Standard, FHS) in accordance with the standard file system used frequently or not and whether the user allowed to speak freely modifiers, and the directory defined form four kinds of interactions, as follows: share: You can mounted to other systems sharing use of the directory, the execution file including the user data such as e-mail, to be able to share the directory on the network used to mount other hosts; not sharing: means for operation of the machine above their files or programs with related socket files, etc., as only related to their own machine, so of course is not suitable for other hosts to share a. Unchanged: Some data is not constantly changing, followed by distribution without changes. Such as libraries, documentation file, the system administrator managed hosting configuration files, and so on; can change: constantly changing data, such as the log file, the general user can accept the newsgroups.
- / (Root): related to boot the system;
- / Usr (unix software resource): software installation and implementation of relevant;
- / Var (variable): related to the operation of the process system.
/ Dev / cdrom CD-ROM directory/ Dev / console console/ Dev / fd Floppy/ Dev / hd a partition on the hard disk/ Dev / lp0 printer/ Dev / ttyS0 serial device system/ Dev / dsp speaker apparatus system
/etc/dhcpd.conf DHCP service configuration file/etc/host.conf resolver query sequence profile, different from the / etc / hosts (IP and storage of correspondence between the domain name of a text file)/etc/logrotate.conf logrotate (log file management tool) profiles/etc/man.config/etc/mke2fs.conf mke2fs (Disk Format) command configuration file/etc/modprobe.conf modprobe (automatic processing loadable module) command profile/etc/resolv.conf DNS domain name resolution configuration file/etc/sysctl.conf some system information configuration files, correspondence files and subdirectories in / proc / sys / directory ofsyslogd process /etc/syslog.conf (or rsyslog.conf) Profiles/etc/xinetd.conf xinetd (used to manage multiple small network service) Service Profiles/etc/yum.conf yum configuration file
/etc/cron.d used to configure and control file storage process is scheduled to run cron daemon used. Other directories include / etc / crontab file defines cron.hourly, cron.daily, cron.weekly and cron.monthly four directories./ Etc / cups used for storing various configuration files Common UNIX Printing System (Commom UNIX Printing System, CUPS) used./ Etc / default file for providing a portion where tools (e.g. useradd) use a default value and variable./ Etc / httpd root directory of the Apache configuration file. Apache is a versatile, high-performance HTTP server, is the world's most popular Web server. Apache uses a modular design approach to support dynamic run-time module selection, web hosting, and service process number of dynamic adjustment.Need a script file executed by init Dispatched when /etc/init.d for storing enter the corresponding operational level. In FedoraLinux system, this is just a symbolic link file, the actual directory should be /etc/rc.d/init.d./etc/ipsec.d for use profile storing IPSee the like./ Etc / kde initialization file which contains the KDE and KDM profile./ Etc / pki for storing various keys, such as keys for the installation package and the like./ Etc / ppp PPP for storing scripts and configuration files./etc/profile.d for storing / etc / profile and other auxiliary initialization files, such as lang.sh script files./etc/rc.d for storage into the corresponding run-level script file is executed by the init process scheduling. Init.d and the like which contains subdirectories rcN.d (where N is 0,1,2,3,4,5, and 6, showing operation of the system level).Root directory / etc / samba Samba configuration file. Samba is a general term for network sharing software, SMB protocol implemented in the Linux system, allows Linux systems to provide file and print sharing for Windows system services./ Etc / security file basic safety control user storage, including registration control files, control file access control, resource constraints and control files./ Etc / selinux SElinux (Security Enhanced Linux, GPL project led by the development of the US National Security (National Security Agency), it has a flexible mandatory access control architecture, designed to improve the security of Linux systems, providing robust security guarantees, protects against unknown attacks, allegedly equivalent to the B1 level of military security. MSNT much high than the so-called C2. after applying SELinux, you can mitigate the disaster malicious attacks or malicious software, and to provide for confidentiality and have high integrity high information security requirements.) root directory of the configuration file./ Etc / skel where there default initialization files, such as .bash_logout, .bash_profile, .bashrc, .emacs, .kde and .zshrc and so on. Whenever add a new user, the system will copy the part where the initialization file to the user's home directory. Note: The above documents are hidden files. (Ie. "" Beginning of the file name)/ Etc / ssh directory contains system configuration, system boot and various configuration files needed during various back-end service process is the root chkconfig maintain configuration files. For example, where the file containing the system clock time zone setting, Keyboard type definition file contains the keyboard, init parameter definition file system contains the boot during use and the like./ Etc / tomcat5 tomcat root directory/ Etc / vsftpd FTP server contains profiles, including vsftpd.conf, ftpusers user_list and other important documents./etc/xinetd.d which profiles all the traditional use of network services include xinetd service process control, in particular, it contains configuration files telnet and other network applications. On Linux systems, the original has been more powerful inetd xinetd service process replaced the original inetd.conf configuration file can also be replaced by a series of individual profiles xinetd.d directory./ Etc / yum yum software update tool which contains configuration files used./etc/yum.repos.d which contains configuration files for each depot.
/ Lib / modules placed in the core of the associated module (driver)/ Lib / crda / pubkey placed a number of public key cryptography/ Lib / systemd to store some system scripts, such as shutdown, sleep/ Lib / console driver installer is placed some (sh files), e.g. keyboard-setup.sh/ Lib / live / config there are 0031-root-password, use the cat you can see the root password
command to complete the work load. In the system, this directory contains mount points CD-ROM, floppy disk and.
/ Sys / devices in this device is a global directory structure system, registration is found to contain all of the various physical devices on the various buses. In general, all physical devices on its bus topology is shown, but with two exceptions, namely platform devices and system devices. platform devices are generally hung on the chip's internal bus to tell the low speed or various controllers and peripherals, they can be addressed directly to the CPU; system devices not peripheral, but the core structure inside the chip, such as CPU, etc. Timer they generally do not have the relevant drivers, but there will be some architecture-dependent code to configure them. (Sys / devices is the kernel of the system model expressed in different levels all the equipment, but also the / sys directory structure of the most important file system management device)./ Sys / dev This directory maintenance in accordance with a number of primary and secondary character and block devices: Link to (major minor) file is really a symbolic link device (/ sys / devices) are./ Sys / class registered in the kernel which contains all the types of devices in the directory, which is in accordance with functional classification of the device model of the device, each device having a device type expressing one function. Under each device type subdirectory are symbolic links to a variety of specific types of equipment that device, which links to specific devices under / sys / devices / name. The device type and device is not one to one relationship, the physical device may have a plurality of device types; a device having a device type expressing only one function, for example: all system devices will appear in the input / sys / class / input of next, whether they are based on what is connected to the bus system. (/ Sys / class also form part of a unified linux device models)/ Sys / block all subdirectories of the directory in the system represents all devices currently found in the block. By function is placed under / sys / class would be more appropriate, but because of the historical legacy of factors have been present in the / sys / block, but linux2.6.22 start this part of the kernel has been marked as the past, only to open the configuration CONFIG_SYSFS_DEPRECATED will have compiled this list exists, and the contents of which start from linux2.6.26 version has officially moved to the / sys / class / block, the old interface / sys / block reserved for backward compatibility exist, but the content has they point to become the real device in / sys / devices / symbolic link file./ sys / bus each subdirectory of the directory is kernel support and has registered bus type. This is a kernel type of device is placed in a hierarchical directory structure in accordance with the bus, all the equipment / sys / devices are connected to the bus under certain, specific for each bus under the subdirectory of the bus can be found in each particular device symbolic link, generally comprising each subdirectory (bus type) two subdirectories, one devices, and the other is Drivers; wherein the devices are all devices in the bus type, these devices are symbolic links, which are real pointing device (/ sys / devices / name / down); and the lower drivers are registered in all the bus drivers, each driver under a number of subdirectories may be observed and modified driver parameters. (It also forms part of a unified linux device models)/ Sys / fs By design, the directory uses to describe all the file systems in the system, including the file system itself and in accordance with the file system has been classified storage mount point./ Sys / kernel store all adjustable parameters kernel/ Sys / fireware comprising interface objects firmware (firmware object) and observation of the operation and properties of the directory, i.e., where the system loading mechanism firmware interface user space. (About firmware dedicated to firmware loaded set of API )/ Sys / hypervisor that directory is associated with the Xen virtualization device. (The Xen is an open-source virtual machine monitor)/ Sys / module has all the modules in the directory information systems, whether these modules are inline (inlined) compiled into the kernel image file is compiled as a module outside (.ko file), it may appear in the / sys / module in. That is the next module directory contains all of the kernel module is loaded./ Sys / power supply option is the system directory, the description of the power subsystem is used. There are several attributes files in this directory can be used to control the entire machine power state, as can be written to the control command wherein the machine shutdown / restart, etc.
/ Proc / net, respectively, showing a state where the document various network protocols (such as TCP, UDP and ARP, etc.) and statistics./ Proc / sys This directory is not only there are a variety of system information, but also includes system kernel and TCP / IP network adjustable parameters. Wherein the kernel subdirectory containing shared memory and message queue tunable parameters, net subdirectory contains TCP / IP various adjustable parameters. For example, the maximum SHMMAX shared memory file containing the definition of the system, if the "echo somevalue> / proc / sys / kernel / shmmax" command, can directly modify the operating system kernel parameters without the need to reboot the system. This approach to be careful, some files may contain multiple values, or values of different types, therefore, before editing must understand the meaning and the actual value of the parameter. In order to be able to use customized system every time you start the system tunable parameters can be set sysctl.conf configuration file, or write your own Shell startup script.
/ Etc: Configuration Files/ Bin: executable important. Instructions related to the general user and single-mode operation./ Dev: device-related profile and interface configuration/ Lib: file required to execute the required libraries and core modules/ Sbin: instructions related to operating the system administrator
/ Usr / share / man system help filesFile / usr / share / dooc miscellaneous software instructions/ Usr / share / zoneinfo time zone-related lost files