Linux directory structure
/At the top of the Linux system tree, it is the gateway to the Linux file system, all directories, files, devices are
/bin Store user commands (refer toNormal User's command)
/boot Storageboot loader kernelFiles RAMDisk File
/dev StoreEquipmentFile
/etc Storageconfiguration file(Host-specificSystem configuration file, third party may not be here)
/Home General User'sHome Directory(usually the same as the user name, by default each user has a home directory)
/lib repository files and kernel modules--->. soThe end of the library file (share object) and. KoEnd of kernel file (kernel object)
/LIB64 Storage of 64-bit operating system library files
/media mount points for removable devices, such asUSB drive, optical driveAnd so on, Linux will automatically hang the identified device into this directory/mnt temporary mount points for the file system to mount
/optthird-party applicationsInstallation location (for compatibility reasons, has been retained, is almost deprecated)
/proc interface to virtual files for kernel and process-related information (virtual file = Pseudo file)
Note: The virtual directory is the system memory mapping, the content is in memory
/rootAdministratorUser'sHome Directory
/sbin StorageAdministratorThe use of someCommand
/srv Store the currentSystem ServicesThe relevant data
/sys StorageHardwareRelated virtual file systems
/var/log StorageLogFile (/var system is typically run toChanging the data)
/tmpTemporaryFile directory (when learning is done as far as possible in this directory)
/usrthird-party applicationsVarious file storage locations (including the majority of user tools and applications)
/usr/bin third-party commands
/USR/ETC third-party configuration files
/usr/lib third-party library files
/usr/lib64 third-party 64-bit library files
/usr/includeheader file for C language
/usr/local Local Files (install the general application software here)
/usr/local/sharetextFile
/usr/local/srcSource CodeFile
Here is the main write a few common configuration files in/etc directory
/etc/profile
The/etc/profile contains settings for the environment variables of the system, such as $path, $HOME ... Each time a user logs on, the file is loaded to set the environment variable, which is the global profile and is set to affect all users. (/home/username/.profile or. Bash_profile is for a specific user)
/etc/hosts
The Hosts file is a file that is responsible for fast parsing of IP addresses and domain names in Linux systems and is saved in ASCII format. The Hosts file contains mappings between IP addresses and host names, and also includes aliases for host names. In the absence of a domain name server, all network programs on the system can query the file to resolve the IP address corresponding to a host name, otherwise it will need to use the DNS service program to resolve. You can often add common domain names and IP address mappings to the Hosts file for quick and easy access.
/etc/passwd
This file contains user information, and when a new user is added, the file will be incremented by one line (including username, password ...), which can be viewed by each user in this file system. If the password field contains "X", this means that the password has been confused
/etc/shells
Contains a list of possible "shells" that are available to the system.
/etc/group
Contains a valid group name and the users that are included in the specified group.
This article is from the "Journeys By chance" blog, make sure to keep this source http://meaningful.blog.51cto.com/4543452/1628149
Linux directory structure