Linux directory structure

Source: Internet
Author: User
Tags system log

All directories are under the root

directory Structure and disk separation

Directory hierarchy:

What file data should be placed in each directory in the first layer "/" directory

For example:/etc directory decentralization system configuration file

/bin and/sbin placing programs and system commands

The second tier is defined for both the/USR and/var directories.

For example: Place system log files under/var/log, etc.

Tip: The/var partition is separate and the hard drive is large enough. There are monitoring, the remaining 20% alarms.

/dev/Equipment Catalog

/etc/system Configuration and service configuration file, start command directory

/proc virtual directory showing kernel and process information

/tmp Temp file directory, public toilet, living room

/home directory for ordinary users

/root Administrator Home Directory

/var changes the directory, usually the log file, the cache directory.

/usr user program, and directories for data, help files, binary commands, etc.

Directories for/bin and/sbin and/usr/sbin/user commands.

/proc operating system runtime, process information and kernel information (such as CPU, hard disk partition, memory information, etc.) are stored here

Cat/proc/meminfo Memory Information

Cat/proc/cpuinfo CPU

Cat/proc/mounts Mount

CAT/PROC/LOADAVG load

Linux directory structure

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.