Linux system directory structure

Source: Internet
Author: User

Folder directory under the root directory:

    1. root directory/(home directory of the root user)

Each file and directory is started from the root directory.
Only the root user has write access to the directory.
It is important to note that/root is the home directory of the root user, while the user's home directory for normal users is/home/user

    1. Home directory for normal user

    2. /sbin/bin Store the commands used by the user.
      The commands in/sbin/only allow root users to be used by Superuser. The normal user uses the commands under the/bin/directory. For example, LS cat VI,/boot system boot related files, namely: boot loader related files.
      [[email protected] ~]# ls /boot/config-3.10.0-514.el7.x86_64      initramfs-0-rescue-16b3e1f1592341f8abd834add3b42bf5.img  initrd-plymouth.img               vmlinuz-0-rescue-16b3e1f1592341f8abd834add3b42bf5grub                                             initramfs-3.10.0-514.el7.x86_64.img                            symvers-3.10.0-514.el7.x86_64.gz  vmlinuz-3.10.0-514.el7.x86_64grub2                                           initramfs-3.10.0-514.el7.x86_64kdump.img                 System.map-3.10.0-514.el7.x86_64
V./dev device files.

Includes terminal equipment, USB, or any device connected to the system. For example:/dev/tty1,/dev/usbmon0

Vi./lib/lib64 System Library files

Common commands rely on library files, and you can use Ldd/bin/ls to view the LS-dependent library files

Seven,/media automatically mount the directory, default is empty. Currently more commonly used, such as USB flash drive, DVD and other eight,/mnt manual mount directory, the default is empty nine,/proc process information

A virtual file system that contains information about a running process. For example: The/proc/{pid} directory contains information related to a specific PID.

X. Temporary files generated by the/run process 11,/var variable file

Files that may grow in content can be found under this directory.
This includes-system log files (/var/log), Package and database files (/var/lib), e-mail (/var/mail), print queue (/var/spool), lock file (/var/lock), and multiple restarts of required temporary files (/var/ TMP);

12./etc Configuration file
Contains the configuration files that are required for all programs.
Also includes startup and shutdown shell scripts for starting/stopping a single program

Linux system 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.