Overview
The first half of this article describes the Linux file system catalog Standard FHS (Filesystem Hierarchy). The latter part of the process of personal learning Linux involved in some of the files and paths, to motivate themselves to adhere to the update, in order to improve.
background
Since Linux follows the open source protocol, anyone can build and distribute it based on the core code of Linux. If everyone does what they like, creating directories and storing files in the/directory will inevitably lead to the inability of individuals to use others ' Linux systems. Because you don't even know where the basic configuration and files are ... This creates confusion and is not conducive to the development of Linux. To avoid such a situation, FHS was born. FHS mainly to the Linux file system directory normalization, so that operators do not change a PC becomes the Linux ' illiterate '.
definition
FHS uses the tree structure organization file, defines the use of each region in the system, the minimum required composition of files and directories, and also gives the exception handling and contradictory processing.
FHS defines the two-tier specification:
Defines what file data should be placed in each directory below, such as/etc should be placed in the settings file,/bin and/sbin should be placed executable files and so on.
defined for sub-directories of the/USR and/var directories. For example,/var/log places system login files,/usr/share places shared data, and so on.
Figure FHS
650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M00/85/1D/wKioL1eaCDPhimYIAAUiBNir7lA527.png "title=" Fhs.png "alt=" Wkiol1eacdphimyiaauibnir7la527.png "height=" "width=" 749 "/>"
Files and directories
As I study the system environment is CentOS7, the following finishing is mainly based on CentOS7, and occasionally CentOS6.8 to compare the difference.
| path |
|
|
| file |
|
| /etc/ Centos-release |
file |
View the release version of CentOS, suggested modifications, with soft link files:/etc/redhat-release |
| file |
pre-login information, which provides information or system identification that appears before the login prompt appears. You can #man Agetty to view the file support format |
| /etc/ man_db.conf |
file |
man command. CentOS6 is/etc/man.config |
| file |
Sets the environment information for all users of the system, when the user logs on, the file is executed, and the shell's settings are collected from the/ETC/PROFILE.D directory's configuration file |
| /etc/ Shells |
file |
recorded system available Shell list |
| /etc/sysconfig/network-scripts/ |
directory |
|
| /lib/ modules/ |
directory |
|
| file |
View CPU information |
| /proc /meminfo |
file |
View memory information |
| file |
|
| /sys/class/scsi_host/host2/scan |
File |
SCSI disk scanning mechanism. vmware virtual machine Add SCSI hard drive , System No restart recognition can use command #echo '---' >/sys/ Class/scsi_host/hostN /scan ( |
| /usr/share/dict/words |
file |
shortcut, actually pointing to Linux.words,linux's dictionary file |
| /usr/ share/doc/ |
directory |
local help document |
| directory |
|
| file |
|
| file |
|
| ~/.bashrc |
File |
Bash information for individual users bash the shell, which is read when logged in and every time a new shell is opened. |
Keep updating ing ...
write at the end
The above part of the content is organized from the network, the user's speech only represents their personal views, because the beginner Linux, limited to my level limited, the text inevitably wrong. Welcome you crossing feel free, discuss related technology. Thank you.
Contact me: [email protected]
This article is from the "Zhaoqi Learn to Linux" blog, so be sure to keep this source http://zhaoqifly.blog.51cto.com/3500118/1831593
Linux basic File system directory standard FHS