Linux System directory Infrastructure

Source: Internet
Author: User

1. Classic Tree-shaped catalogue

One of the best features of Linux system design is to represent everything as a file, and to manage and organize these files in a single tree structure. The entire file system has root roots, and then a lot of forks are split across the root.

(1)/etc directory

This directory is mainly used for system management related configuration files and subdirectories, which are more important to have the system initialization file/ETC/RC, user information file/etc/passwd, related network configuration files and service startup files are also in this directory.

(2)/usr directory

This directory is primarily used to store applications and files. If a lot of packages are selected when the system is installed, these packages will be installed by default in this directory, and some of the software that we normally install will be installed in this directory by default.

(3)/var directory

This directory is primarily used to store log information that is allowed by the system and run by the software.

(4)/dev Directory

This directory contains all the device files for the system.

(5)/proc catalogue

This directory is a virtual directory, the directory all information is a memory mapping, through this virtual memory map directory, you can interact with the internal data structure of the kernel, get useful information about the process, but also can modify the kernel parameters in the system running. Unlike other directories,/proc exists in memory, not on the hard disk.

(6)/boot directory

This directory contains some of the core files when starting Linux, including some image files and linked files, so this directory is very important, if damaged, the system will not start.

(7)/bin

Both directories are executable binary files, bin is actually binary abbreviation, Bin directory is stored in our frequently used Linux commands, such as file Operation command LS, CD, CP, text Editing command VI, ed, disk Operation command DD, DF, Mount, Wait a minute.

(8) /sbin catalogue

s means super user means that only Superuser can execute these commands, common such as disk Check Repair command FCSK, Partition command fdisk, create file System command mkfs, Shutdown command shutdown and initialize system command INIT, etc.

(9)/home Directory

This directory is the working directory of each user in the system, and in the Linux system, each user has its own directory, and the directory is named after the user's account. For example, if there is a user Fuyuehua, then its default directory is/home/fuyuehua.

(/lib) Catalogue

This directory contains shared libraries and image files that can be used by many programs, each of which does not have to save its own library files, and Linux provides a set of files that are available to all programs, and in that directory, the static library files required to boot the process.

(one)/root catalogue

This directory is the default home directory for the root of Linux superuser, and if you log into the system by root, it will automatically go to this directory, the general user does not have access to this directory.

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.