In short,/lib is kernel-level,/usr/lib is system-level, and/usr/local/lib is user-level.
/Lib/-Contains many/Bin/And/Sbin/The library file used by the program in. Directory/Usr/lib/Contains more library files for user programs. The/lib directory contains the library files required by the/bin and/sbin directories. The file name in the/lib directory follows the following format:
Libc. So .*
LD *
Only the shared libraries used by programs under the/usr directory do not need to be placed in the/lib directory. Only the libraries required by the/bin and/sbin programs must be placed in the/lib directory. In fact, if the library file of the libm. So. * type is required by/bin and/sbin, it can also be put under/usr/lib.
/Bin/-Stores user commands. Directory/Usr/binIt is also used to store user commands.
/Sbin/-Storage location of many system commands (such as shutdown. Directory/Usr/sbinMany system commands are also included.
/Root/-Main directory of the root user (Super User.
/Mnt/-This directory usually contains the mount points of the file system that is mounted after system boot. For example, the default disk mount point is/Mnt/CDROM/.
/Boot/-Including files used during kernel and other system startup.
/Lost + found/-QuiltFsckUsed to place scattered files (files without names ).
/Lib/-Contains many/Bin/And/Sbin/The library file used by the program in. Directory/Usr/lib/Contains more library files for user programs.
/Dev/-Store device files.
/Etc/-Contains many configuration files and directories.
/Var/-For storageVariable(Or constantly changing) files, such as log files and printer offline files.
/Usr/-Includes files and directories directly related to system users, such as applications and library files that support them.
/Proc/-A Virtual File System (not actually stored on a disk) that contains system information used by certain programs.
/Initrd/-Used to mount a disk when the computer starts.Initrd. imgThe Directory of the image file and the directory of the device module to load.
Warning
|
|
NoDelete/Initrd/Directory. If you delete this directory and then reboot Red Hat Linux, you will not be able to boot your computer. |
/Tmp/-Temporary directories of users and programs./TmpRead and write permissions are granted to all system users.
/Home/-Default location of the user's main directory.
/Opt/-The storage directory of optional files and programs. This directory is primarily used by third-party developers to easily install and uninstall their software packages.