Introduction to Linux File systems

Source: Internet
Author: User

Linux File System
One of the basic ideas of Linux, all documents

The Linux file structure is similar to a tree structure, and the root is the/directory, that is, rooted or rooted

First, you need to understand the FHS (Filesystem Hierarchy Standard) file system hierarchy
Introduction to FHS Https://en.wikipedia.org/wiki/Filesystem_Hierarchy_Standard

Subdirectories in the root directory are described below:
/dev: Device Files directory
Each device requires a corresponding device file to be accessed.
Device files:
In Linux, devices are divided into block devices and character devices according to different access modes.
Block device: Random access device, data random access
Character device: Linear access device, by character

/etc: Configuration file main storage

/home: User's house directory, each time adding a user will create a new user directory under/home/home/user NAME

/root: Admin user folder, not in/home directory

/lib: library file
The library file does not have a portal, cannot be executed alone, can only be called
Dynamic library:. dll (Windows). SO (Linux)
Static Library:. A
Dynamic compilation: Only one link in the dynamic library is included in the dynamically compiled file
Static compilation: A statically compiled program file directly contains the library

/lib/modules: Kernel module files

/media: mount point directory for use with mobile devices
Mount: Connect a device to a node in the file tree

/MNT: Miscellaneous

/OPT: Optional directory, installation directory for third-party programs

/proc: Pseudo file system, kernel mapping file, only after system boot

/sys: Pseudo file system with hardware device-related property mapping file

/tmp: Temp file,/var/tmp

/var: changeable file

/bin: Binary file, executable file

/sbin: Managing Files

/usr: read-only files
/usr/bin
/usr/sbin
/usr/lib

/usr/local: Third-party Program Files

File type: the
1. Common documents
2. Catalog files
3. Character device files
4. Symbolic Link File
5. Command Pipeline File
6. Socket file
File types can be queried through the files command

Linux file Naming conventions:
1. Name length not exceeding 255 characters
2. Cannot use sensitive characters/
3. Name is strictly case sensitive

Directory: A directory is also a type of file, a kind of special file similar to the reference file
Under Linux, unlike Windows, you use file suffix names to differentiate between file types and whether the file is executable.
In Linux, whether a file can be executed is related to file attributes.
However, when you create a file, you will also be given a suffix to prompt for file content information for easy viewing.

Introduction to Linux File systems

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.