Linux File System (version 2)

Source: Internet
Author: User

Linux File System (version 2)
Linux File System Structure

/Boot directory:

The storage location of the kernel files and System Bootstrap files stores the current kernel of the system [generally MB]

For example, the configuration file of the grub boot file

/Etc directory:

This directory must be backed up when backing up the system.

For example, a file that the system administrator often needs to modify determines the configuration file for system behavior.

/Bin,/usr/bin directory:

Store frequently-used commands of users [All users can use]

Such as ls and cp

/Sbin,/usr/sbin directory:

Command Used To save system maintenance [common users are unavailable and only root users are available]

For example, fdisk: Partition

Mkfs: Format

/Lib directory:

Saves the library files required for running the system. When installing the program, the Library is automatically copied here.

For example, a static library file suffixed with. a in C Language

Dynamic library file with. so Extension

/Dev directory:

Store Device Files

For example:/dev/cdrom

/Dev/hda

/Dev/sdb

/Var directory:

Saves frequently changed files and data during system operation

For example, log file: log

Email file: mail

Offline files and scheduled tasks

/Mut directory:

For the convenience of installing the temporary file system, the devices are usually mounted to the mut directory.

For example, a CD: mut/cdrom

USB flash disk: mut/sdb2

/Proc directory:

System memory/CPU ing, stores the current memory image, virtual file system, not stored in the hard disk

For example, view the memory size: more/proc/meminfo

View CPU: more/proc/cpuinfo

After the directory is deleted and restarted, it will be mapped again.

/Tmp directory:

Used to save temporary files generated when the system is running. special permissions: Stick bit t

For example, temporary data during program running

/Usr directory:

It is the largest in the system to store user-related information.

Saves almost all commands, libraries, and manual pages. Similar to the C: \ Windows directory in windows, you are used to installing software in the/usr/local directory.

/Home directory:

In the system, the Home Directory of a common user; cd returns its home directory by default

/Root directory:

The root directory of the Super User IN THE SYSTEM

/Lost + found

Stores system error check results. The directory is empty by default.

[Most of the others have no important functions, and many of them are empty !]

[When managing a file system,/home,/boot,/usr can be separated separately]

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.