Linux Learning Note II: Linux file system

Source: Internet
Author: User

The major Linux versions follow the FHS (Filesystem Hierarchystandard) file system catalog standards and are a tree-structured organization file. The directories are briefly documented here.


All files under Linux are under/files.

Tree-shaped structure diagram:

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/42/AC/wKiom1PYoXCCRkCUAAFegtuUpDE037.jpg "title=" directory structure. jpg "alt=" wkiom1pyoxccrkcuaafegtuupde037.jpg "/>


/boot: System startup related files main file 1, Vmliunx: Kernel 2, Initramfs: Disk image file 3, grub (bootloader)

/dev: Device files

Block device: Random access device.

Character Devices: Linear devices, sequential access. by character. Keyboard, mouse.

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

/etc: Configuration file

/home: User House directory, per user default for/home/username,root users directly stored in/files.

/root: Admin Home Directory

/lib: library files, packaged with certain features, are called directly when developing a program.

/lib/modules: Kernel module files

Static library files:. A library files and executing programs are in one file and can be used directly when porting.

Dynamic Library file: dynamic-link library, under Windows. dll for. So (Shared object)

Shared object: The runtime loads into memory, and other programs use the data directly in memory without additional memory costs.

/lost+found: Files within each partition, the role of power outages or non-artificial downtime, the storage of unsaved files. Used to retrieve lost files.

/MNT: Mount directory. Used to mount additional temporary files.

/media: mount point directory. Used to mount mobile devices.

/OPT: Optional Directory

/proc: Pseudo file system. Modifying the file is equivalent to modifying the kernel. Only exists in memory and does not occupy external memory.

/proc/cpuinfo CPU Information

/proc/partitions system-recognized partition table

/proc/meminfo Memory Information

/proc/uptime System Uptime

/proc/devices devices that can be used

/proc/interrupts Interrupt Process

/proc/kmsg Kernel Information

/sys: Property mapping properties for file systems, which are related to hardware devices.

/tmp: Temporary files directory, files that are not accessed in the directory within January are deleted.

/var: a variable file.

/bin: Executable file, user command

/sbin: Executables, administration commands

/usr:shared,read-only: Share read-only files globally.

/usr/bin:

/usr/sbin:

/usr/lib:

/usr/local: Third-party software storage place.

/usr/local/bin:

/usr/local/sbin:

/usr/local/lib:



This article is from the "small rookie in the physical Layer" blog, please be sure to keep this source http://cdong.blog.51cto.com/1370468/1532840

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.