The role of Linux-----directories

Source: Internet
Author: User

The role of Linux directories will be supplemented and truncated later

Directory Name Directory role
/bin/ The directory where the system commands are stored, which can be performed by both ordinary and super users. However, commands placed under the bin can also be executed in single-user mode
/sbin/ Save the commands associated with the system environment settings, only the superuser can use these commands for system environment settings, but some commands can allow normal users to view
/usr/bin/ The directory where the system commands are stored, which can be performed by both ordinary and super users. These commands are not related to system startup and cannot be performed in single-user mode.
/usr/sbin/ Storing root file system unnecessary system administration commands, such as most service programs. Only super users can use it. You can actually notice the Linux system, the commands saved in all ' sbin ' directories are available only to super users, and all users can use the commands saved in the ' bin ' directory.
/boot/ System startup directory, save system startup related files, such as kernel files and boot boot program (GRUB) files.
/dev/ Save the directory for the device file. All content in Linux is saved as files, including hardware. This directory is used to store all hardware device files.
/etc/ The configuration file saves the directory. All the configuration files in the system that use the default installation method (RPM installation) are all stored in this directory, such as user account and password, startup script of service, configuration file of common service, etc.
/home/ Home directory for ordinary users. When each user is established, each user has a default login location, which is the home directory of the user, and the home directory for all ordinary users is a directory with the same user name under///. If the user User1 home directory is/home/user1
/lib/ function library save location for system call
/lost+found/ When the system is running outside or shutting down the machine, some file fragments are placed here. When the system starts, the Fsck tool checks here and repairs the corrupted file system. This directory only appears in each partition, for example,/lost+found is the root partition of the backup recovery directory,/boot/lost+found is the/boot partition backup recovery directory.
/media/ Mount the directory. System recommendations are used to mount media devices, such as floppy disks and discs
/mnt/ Mount directory, get up early Linux only this one mount directory, and there is no subdivision. Now this directory system is recommended to mount additional devices such as USB flash drives, removable hard disks and other operating system partitions.
/misc/ Mount the directory. The system recommends a shared directory to mount the NFS service. We have just explained the mount, and you should know that as long as an empty directory has been established, it can be used as a mount point. Then the system prepared three default mount directories/media,/mnt,/misc, but in which directory to mount what device can be determined by the administrator.
/opt/ The software where the third-party installation is saved. This directory is to prevent and install other software location, I manually installed source package software can be installed in this directory. But I'm still more used to putting the software in the/usr/local/directory, which means the/usr/local/directory page can be used to install the software
/proc/ Virtual file system, the data in this directory is not saved to the hard disk, but stored in memory. The main storage system kernel, process, external device status and network status. If the/proc/cpuinfo is to save the CPU information,/proc/devices is to save the device driver list,/proc/fileystems is to save the file system list,/proc/net/is to save the network protocol information
/sys/ Virtual file system. Similar to the/proc directory, are stored in memory, mainly stored in the kernel-related information.
/root/ Home directory for super users. Normal user home directory under "//", the Super User home directory is directly under "/".
/srv/ Service data directory, after some system services are started, you can save the required data in this directory
/tmp/ Temp directory. The directory where the system holds temporary files that all users can access and write to. We recommend that you not save important data in this directory, preferably by emptying the directory every time you boot
/usr/ System software Resource directory. Note that USR is not a user abbreviation, but rather a "Unix softwreresourse" abbreviation, so it is not the data that is stored, but the directory where the system software resources are stored. Most of the software installed in the system is saved here, so in addition to the/usr/bin and/usr/sbin/, I'll show you a few two levels of the/usr/directory.
/var/ Save the directory for Dynamic Data. Mainly save the cache, log and files generated by the software

The role of Linux-----directories

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.