Linux file system

Source: Internet
Author: User
Tags temporary file storage

File system and directory structure

650) this.width=650; "Src=" https://s3.51cto.com/wyfs02/M01/97/27/wKioL1kpYobCzj0EAAEF4vKQxpg578.png-wh_500x0-wm_ 3-wmp_4-s_1269644832.png "title=" 13.png "alt=" Wkiol1kpyobczj0eaaef4vkqxpg578.png-wh_50 "/>

File system

1. Files and directories are organized into a single inverted number structure

2. File system starts from the root directory, denoted by "/"

3. root file System (ROOTFS): root filesystem

4. File names are case-sensitive

5. Files with a. Start as hidden files

6. Path delimiter:/

7. Two types of data for a file: metadata (metadata) and data

8. File System hierarchy: LSB (Linux standard Base)

9.FHS (Filesystem Hierarchy System)

File name rules

1. Maximum 255 bytes of file name

2. File names including paths up to 4,096 bytes

3. Display as Blue: Directory green: Executable file;

Red: Zip file light blue: Link file

Grey: Other Files

4. except/, all other characters are in effect, but use special characters for filenames and directories

Deprecated, some characters need quotation marks to refer to them.

5. Standard Linux file systems (such as EXT4), file names are case sensitive. Example: Mail,mail

File system Structure

/ Boot: boot file directory, kernel file (vmlinuz) and boot loader (bootleader) are stored in this directory

/bin: The underlying command for all users, cannot be associated to a separate partition, and the program that is used by the OS startup

/sbin:(Super Bin) manages the underlying commands for the class (for administrators to use), cannot be associated to separate partitions, programs that are used when the OS is started

/lib: Basic Shared library files that the program relies on at startup and kernel module files (/lib/modules)

/lib64: storage location for secondary shared library files dedicated to x86_64 systems

/etc: configuration file directory

/home/username: Normal User home directory

/root: Administrator's home directory

Media: Portable mobile device mount point

/mnt: temporary file system mount point

/ Dev: storage device files and special files

/tmp: temporary file storage location

/selinux: Storing information related to security policy

/usr: (universal< Universal > Shared,read-only data)

Bin: Ensure that the system has the full functionality of the application provided sbin:lib:32 bit use LIB64: only 64-bit systems can use the Local: installation location for third-party applications (bin,sbin,lib,lib64,e Tc,share)

/var: (Variable data files variable file)

Cache: Application Cached Data Directory Lib: Application state information Data lical: Specialized for Applications under/usr/local UC you also coarse variable data lock: Lock file log: Log directory and file opt: dedicated to applications in the/OPT directory Program store variable data run: process-related data in progress, typically used to store process PID files spool: Application Data pool tmp: Save temporary data generated between two reboots of the system
Look at the mail sending feature under this directory

650) this.width=650; "Src=" https://s3.51cto.com/wyfs02/M02/97/27/wKioL1kpZCGh0eG0AABoDsU-1fg218.png-wh_500x0-wm_ 3-wmp_4-s_4018140777.png "title=" 24.png "alt=" Wkiol1kpzcgh0eg0aabodsu-1fg218.png-wh_50 "/>

/proc: A virtual file system for outputting kernel-related process information

Cat/proc/menminfo can view the memory size Cat/proc/pcuinfo can view the CPU information cat/proc/partition can see the partition situation Ls/proc can look at the process information and memory data

/sys: Storing hardware information about the system

After a hard drive is added to a virtual machine, it needs to be restarted before it can be displayed, so if you don't want to restart

What's the run? We can set it in the/sys directory

650) this.width=650; "Src=" https://s4.51cto.com/wyfs02/M01/97/26/wKiom1kpZF-AJLhxAAVeMkof_Xs755.png-wh_500x0-wm_ 3-wmp_4-s_1063634180.png "title=" 25.png "alt=" Wkiom1kpzf-ajlhxaavemkof_xs755.png-wh_50 "/>

Types of files under Linux
-: Normal file D: Directory file B: Block device C: Character device L: Symbolic link File P: Piping file Pipe S: Socket file socket (ip+port< port number;, for remote connection)


This article is from the "12922061" blog, please be sure to keep this source http://12932061.blog.51cto.com/12922061/1930367

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.