Introduction to Linux File system

Source: Internet
Author: User

This post introduces the filesystem of Linux, as the Linux Standards Board has developed a filesystem standard FHS, a filesystem-level standard that specifies which directories the Linux distribution should create to store specific types of files.

The root directory is recorded as/

First Level directory:

/boot: System boot related files, such as kernel, INITRD, and Grub (bootloader)

/dev: Device files

Block device files: Random access devices, accessed in blocks

Character device Ask Price: sequential access to device, accessed in character units

Main device number (major), secondary device number (minor)

/etc: Configuration file

Home directory for users, the home directory of each user defaults to/home/username

/root: Administrator's home directory

/lib: library file directory

. A: Static library files

. So: Dynamic library file (shared object)

/lib/modules: Kernel Module directory

/include: Header file directory

/media: mount point directory, mobile device

/MNT: mount point directory, additional temporary file system

/OPT: Optional directory, installation path for third-party software

/proc: Pseudo file system, kernel mapping file

/sys: Pseudo file system, property mapping file related to hardware device

/tmp: Temp file/var/tmp

/var: variable file

Related to System startup:

/bin: Executable file, user command

/sbin: Managing Commands

Related to normal operation after system startup:

/usr:universal, GKFX, read-only

/usr/bin

/usr/sbin

/usr/lib

/usr/include

Related to third-party software:

/usr/local

/usr/local/bin

/usr/local/sbin

/usr/local/lib

/usr/local/include

File directory naming rules:

1, the length can not exceed 255 characters;

2. Cannot include/;

3, strictly case-sensitive.

Introduction to Linux File system

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.