Linux Root file system explained

Source: Internet
Author: User


/boot: System startup related files:

/dev: Where device files are stored

Block devices: Capable of random reads: For example, hard drives

Character devices: Sequential read devices: For example, keyboards

/home: The location of each user's house directory.

User's home directory:/home/user

The root user's home directory is;/root

/lib: Where the library files are stored

Library file: An executable program that is called by the program to interact with the system kernel. A library file is a program. The kernel deals with hardware by invoking system calls. Security and complexity are not optimistic if the program directly interacts with the hardware using system calls. So use the library file to call the kernel to interact with the hardware.

Library files are divided into dynamic library files and static library files:

Dynamic library files:. dll files in Windows,. so files in Linux. The dynamic library will be loaded into memory and can be used by multiple programs. Save memory space. However, if a program needs to use a dynamic library, then we need to ensure that the system contains the corresponding dynamic library when installing the program

Static library file: A static library cannot be shared as a dynamic library, it is contained within a program and can only be called by that program. Unable to save memory as a dynamic library

/proc: Pseudo File system: Contains the kernel's mapping file. Our systems, such as CPU information, are in there.

/sys: Another pseudo file system: it contains hardware mappings

/tmp: Temp file

/OPT: Optional directory: Previously used for storage of third-party software

/bin: User's commands

/sbin: command of the system

/media: Mobile Device Mount Directory

/MNT: Additional temporary file system: For example, hard disk. Mount a directory like media

/var: variable directory: There are directories such as logs and caches

/usr:unervuersal,shared,read only: Shared read-only files for the entire region. There are two sub-file systems inside.

/usr/bin

/usr/sbin

/usr/lib

There is also a sub-file system: Software used to store third parties. Instead of the previous opt

/usr/local/bin

/usr/local/sbin

/usr/local/lib


This article is from the Linux learning blog, so be sure to keep this source http://884482.blog.51cto.com/874482/1694704

Linux Root file system explained

Related Article

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.