Linux distribution base directory naming and functions

Source: Internet
Author: User

Linux distribution base directory naming and functional directory configuration standard FHS
    • Because of the wide variety of Linux distribution, there are also a lot of open teams and companies.

    • In order to provide users with the usual location of installed software, the FHS (filesystem hierarchy Standard) file system hierarchy is introduced to standardize the directory structure of Linux, while ensuring that FHS is followed Developers of each Linux distribution can develop the unique style they want based on their intentions.

FHS defines the directory and content stored under the root file
  • /bin: Basic command Program Files available to all users

  • /sbin: A tool program for use by system administrators

  • /boot: Each static file that the bootloader must use; Kernel,initramfs (INITRD), grub, etc.

  • /dev: Store special files or device files;

    • There are two types of devices: Character devices (linear devices), block devices (random devices)

  • /etc: The configuration file of the system program, only for static

  • /home: The central location of the common family directory, usually the home directory of each normal user is the default subdirectory with the same name as the user name in this directory,/home/username:

  • /root: Administrator's home directory; optional

  • /lib: Provides a shared library for system startup or applications on the root file system (/bin,/sbin, etc.) and provides kernel modules for the kernel

    • Lib.so.*: Dynamically linked C library

    • ld*: Runtime linker/Loader

    • Moduless: The directory used to store kernel modules

  • /LIB64:64-bit system-specific path for storing 64-bit shared libraries

  • /media: Portable Device mount point, cdrom,floppy, etc.

  • /MNT: Temporary mount point for other file systems

  • /OPT: The installation location of the attached application; optional path

  • /SRV: Data provided by the current host for the service

  • /tmp: A directory to store temporary files for programs that generate temporary files, which can be used by all users for write operations; special permissions

  • /USR:USR hierarchy, globally shared read-only data path

    • Bin,sbin

    • Lib,lib64

    • INCLUDE:C Program header File

    • Share: Storage location of schema-specific files such as command-book pages and self-documenting documents

    • Local: Another level directory

    • Installation location of the X11r6:x-window program

    • SRC: Where the program source files are stored

  • /usr/local:local hierarchy, let the system administrator install the local application, also commonly used to install third-party programs

  • /var:var hierarchy, a directory that stores frequently changed data

    • 650) this.width=650; "src=" http://s7.sinaimg.cn/mw690/006OPNgazy7cmbUyl6K86&690 "style=" border:0px; "alt=" 006opngazy7cmbuyl6k86&690 "/>

  • /proc: A memory-based virtual file system used to store information about the kernel and its processes, many of which are kernel parameters, such as Net.ipv4.ip_forward, which are net/ipv4/ip_forward, so their full path is/proc/sys/net/ Ipv4/ip_forward

  • The/SYS:SYSFS virtual file provides a more ideal way to access the kernel data than the proc; its main role is to provide a unified model interface for managing Linux devices.


This article is from the "Shannon View" blog, please be sure to keep this source http://xiangjis.blog.51cto.com/9430796/1952002

Linux distribution base directory naming and functions

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.