/bin/

Directory where system commands are stored , Common users and super users can execute . But when /bin The command under can also be executed in single user mode .

/sbin/

Save commands related to system environment settings , Only the super user can use these commands to set the system environment , But some commands allow ordinary users to view .

/usr/bin/

Directory where system commands are stored , Common users and super users can execute . These commands and systems can activate the property management , But not in single user mode .

/usr/sbin/

Store unnecessary system management commands with the file system , For example, most service programs . Only tea table users can use . You can actually notice that Linux System , In all “sbin” The commands saved in the directory can only be used by super users ,“bin” The commands saved in the directory can be used by all users .

/boot/

System boot directory , Store system startup related files , Such as kernel files and boot loader (grub) Documents, etc. .

/dev/

Device file storage location , We've already said that Linux All of the contents are saved as a file , Including hardware , So this directory is used to save all the hardware device files .

/etc/

Where to save the configuration file . The system adopts the default installation mode (rpm install ) All the service configuration files are saved in this directory , Such as user accounts and passwords , Service startup script , Configuration files of common services, etc .

/home/

Home directory for ordinary users . When establishing each user , Each user should use a default login location , This location is the user's home directory , The home directory of all ordinary users is in /home Create a directory with the same user name . Such as user usr1 Our home directory is /home/usr1.

/lib/

The function library of the system call is saved in .

/lost+found/

When the system crashes or the machine shuts down unexpectedly , And generate some file fragments here . When the system starts fsck The tool will check here , And fix the broken file system . This directory only appears in each partition , for example /lost+found It is the backup and recovery directory of the root partition ,/boot/lost+found Namely /boot Backup recovery directory of partition .

/media/

Mount Directory . The system is recommended for mounting media devices , For example, floppy disks and compact disks .

/mnt/

Mount Directory , In the early Linux This is the only one hanging in the directory , There is no subdivision . Now the directory system recommends mounting additional devices , Such as U disc , Partition of mobile hard disk and other operating systems .

/misc/

Mount Directory . The system is recommended for mounting NFS Shared directory for service . We just explained the mount , Children's shoes should guide that as long as an empty directory has been established, it can be used as a mount point . So the system has three default mount directories /media、/mnt、/misc, However, it is up to the administrator to decide which directory to mount any device in , For example, super contact Linux When , The default mount directory is /mnt One , So I developed the habit of /mnt Set up the habit of mounting different devices in different directories , Such as /mnt/cdrom Mount the cd-rom ,/mnt/usb mount U disc , It's all right .

/opt/

Storage location of software installed by a third party , This directory is where other software is placed and installed , I manually install the source code package software can be installed into this directory , But I'm still more used to putting software in /usr/local Directory of , in other words /usr/local Directories can also be used to install software .

/proc/

Virtual file system , The data in this directory is not saved to the hard disk , It's stored in memory . It mainly stores the kernel of the system , process , External device status and network status etc . Such as /proc/cpuinfo Is save CPU The information of ,/proc/devices Is to save the list of device drivers ,/proc/filesystems Is to save the list of file systems ,/proc/net It's for storing network protocol information .

/sys/

Virtual file system , and /proc The catalog is similar to , It's all stored in memory , The main purpose is to save kernel related information .

/root/

Root user's home directory . The home directory of ordinary users is in “/home” Next , Super user's home directory is directly in “/” Next .

/srv/

Service data directory . After some system services are started , You can save the required data in this directory .

/tmp/

Temporary directory . The directory where the system stores temporary files , All users in this directory can access and write . We suggest that important data cannot be saved in this directory , It's better to empty the directory every time you turn on .

/usr/

System software resource directory . Be careful usr No user Abbreviation , It is “Unix Software Resource” Abbreviation , So it's not storing user data , It's the directory where the system software resources are stored . Most of the software installed in the system is stored here , So in addition to /usr/bin/ and /usr/sbin/ These two directories , Let me introduce a few more /usr Under the secondary directory

/var/

Dynamic data storage location , Mainly save cache 、 Logs and files generated by software operation .