Differences between/lib and/usr/local/lib

Source: Internet
Author: User

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.

  • 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.