Root filesystem for Linux (i)

Source: Internet
Author: User

root file System: contains the main programs and data that make the Linux system run, when the kernel starts, it will look for the root file system on the storage device, and the root filesystem will be mounted on the "/".

Location of the root file system:

The root file system is stored in flash memory.

Flash memory is divided into several partitions, the first partition, the second partition, the third partition and so on.

First Partition: Used to store the Linux kernel image file (stored in a separate partition).

Second partition: Used to store the root file system

Third Partition: Store other ordinary file system (operating system does not depend on the third partition)

Directory structure description of the Linux root file system:

The root filesystem complies with the FHS standard (Filesystem Hierarchy standards, file system hierarchy Standard)

Bin directory: Stores basic commands that users can use.

Sbin directory: Store the commands used by the system administrator.

Boot directory: holds static files used by the boot loader

Root directory: Root user's Directory

Home directory: User directory for each ordinary user, there is a subdirectory under the/home directory with the same name as the user name, where the user-related configuration files and private files are stored.

ETC Directory: A variety of system configuration files are stored

Dev directory: Storage of device files and some special files

Opt Catalog: Store additional software in this directory

MNT directory: Temporary file system mount directory used to mount a file system that is temporarily needed

LIB directory: storing shared library files and some driver modules

Proc Directory: is an empty directory, as the proc file system mount directory, proc file system is a virtual file system, it exists in memory, proc file system directory and files are temporarily generated by the kernel.

TMP directory: is an empty directory that is used to hold temporary files. Some programs that need to store temporary files will use the/tmp

USR directory: Store shared, read-only files and programs. Files in this directory can be shared by multiple users.

var directory: Store variable files, such as log files, logs, and temporary files.

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.