Some important directories under Linux/proc,/sys,/selinux,/bin,/usr/lib,/usr/local,/var,/tmp/etc__php

Source: Internet
Author: User

Briefly describe the role of each directory:

/bin:
/usr/bin: Executable binary file directory, such as the commonly used commands ls, tar, MV, cat and so on.

/sys:
File system access to the Linux kernel

/selinux
SELinux is a domain-type model (DOMAIN-TYPE) of the mandatory access control (MAC) security system, which is written by the NSA and designed as a kernel module included in the kernel, some of the corresponding security related applications have been patched SELinux, and finally a corresponding security policy.

/boot:
Place some of the files that are used when the Linux system starts. /boot/vmlinuz is a kernel file for Linux, as well as/boot/gurb. Separate partitions are recommended, 100M of partition size

/dev:
Storage of the device files under the Linux system, access to a file in the directory, equivalent to access to a device, commonly used to mount Optical drive mount/dev/cdrom/mnt.

/etc:
The directory in which the system configuration file is stored does not recommend that the executable be stored in this directory, with important profiles/etc/inittab,/etc/fstab,/ETC/INIT.D,/etc/x11,/etc/sysconfig,/etc/ Xinetd.d remember to backup before modifying the configuration file. Note:/etc/x11 stores settings related to x Windows.

/home:
System Default User home directory, add user account, the user's home directory is stored in this directory, ~ represents the current user's home directory, ~test represents the user test home directory. Suggest separate partitions and set up larger disk space for users to store data

/lib:
/usr/lib:/usr/local/lib: The system uses the function library directory, the program in the execution process, needs to call some additional parameters to need the function library the assistance, the more important directory is/lib/modules.
/proc: This directory of data in memory, such as system core, external devices, network status, because the data are stored in memory, so do not occupy disk space, the more important directory is/proc/cpuinfo,/proc/interrupts,/PROC/DMA,/proc /ioports,/proc/net/*, etc.

/root:
System administrator Root's home directory, the system's first boot partition is/, so it is best to/root and/or place it under one partition.

/sbin:
/usr/sbin:/usr/local/sbin: A Super admin command that places executable commands used by system administrators, such as Fdisk, Shutdown, Mount, and so on. Unlike/bin, these directories are commands that are used by system administrator root, which can only be "viewed" and not set up and used by the general user.

/tmp:
A directory in which a general user or an executing program temporarily holds a file, which is accessible to anyone, and important data cannot be placed in this directory

/usr:
Application storage directory,/usr/bin storage applications,/usr/share storage of shared data,/usr/lib storage can not run directly, but many programs are necessary to run some function library files. /usr/local: Store software upgrade packs. /usr/share/doc: System description file storage directory. /usr/share/man: Program description file storage directory, the use of man LS will query the content of/usr/share/man/man1/ls.1.gz proposed separate partitions, set larger disk space

/var:
Places files that are frequently changed during system execution, such as log files that change at any time/var/log,/var/log/message: All login files are stored in a directory,/var/spool/mail: directory where messages are stored,/var/run: Programs or services start

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.