Linux Learning Notes-root file system

Source: Internet
Author: User

File system structure and root directory description:

Rootfs: Root file system

/partition:

[[email protected]/]# Lsbin Dev home lib64 media opt root selinux sys usrboot etc Lib Lost+found mnt Proc Sbin SRV tmp var

650) this.width=650; "Src=" https://s3.51cto.com/wyfs02/M02/A3/94/wKioL1mk4wbzO_5MAAAlUixdAyw790.png-wh_500x0-wm_ 3-wmp_4-s_290679102.png "title=" qq picture 20170829114335.png "Width=" 550 "height=" 126 "border=" 0 "hspace=" 0 "vspace=" 0 " Style= "WIDTH:550PX;HEIGHT:126PX;" alt= "Wkiol1mk4wbzo_5maaaluixdayw790.png-wh_50"/>

/bin: Binary executables, user commands such as LS, RM, Echo, grep, awk, etc, normal user also have Execute permission

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

/dev Partition: Device files

Block devices: Random access, by data block: Hard disk

character devices: Linear access, per-character access: mouse, monitor

Device number: Main device number (major) and secondary device number (minor)

/etc Partition: The main storage path of the configuration file, such as service startup configuration file,/etc/init.d/mysqld/etc/init.d/httd/etc/init.d/php-fpm

/home partition: User's house directory, each user's home directory is usually/home/user

/lib Partition: library file

Static Library:. A

Dynamic libraries:. So (Shared object)

/lib/modules: kernel module files

/lost+found Partition: This directory is usually empty, and the "homeless" files left behind when the system shuts down are stored here .

/media: mount point directory, Mount Mobile device

/MNT: Mount Additional temporary system

Mount definition: It refers to a device (typically a storage device) attached to an existing Linux directory

/opt Optional Directory, third-party program installation directory

/proc Pseudo-file: Kernel mapping file, storing process (running program) information and kernel information (such as CPU, hard disk partition, memory information, etc. )

/root Partition: Admin home Directory

/sbin: Managing Commands

/sys pseudo-File: Hardware Device-related property mappings

/tmp Temporary file system/var/tmp, General system reboot will not be saved

/selinux partitioning: Used to improve system security

/sys Partition:

/usr read-only files, shared readonly

/usr/bin: non-mandatory ordinary user can execute command

/usr/sbin

/usr/lib:library files for/usr/bin/and/usr/sbin/

/usr/local

/usr/local/bin

/usr/local/sbin

/usr/local/lib

/var: changeable files, such as log files for various services


Root file naming rules:

1, the length can not exceed 255 characters

2. Strictly case-sensitive

3. Cannot use/when file name


This article is from the "Wish_" blog, be sure to keep this source http://itwish.blog.51cto.com/11439802/1960313

Linux Learning Notes-root 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.