Linux system, directory structure

Source: Internet
Author: User

/

root directory, the general root directory only, do not store files, / etc , /bin , / Dev , /lib , /sbin should be placed in a partition with the root directory

/bin

Binary This directory holds the most frequently used commands .

/boot

Store the Linux some core files at startup, including some connection files and image files

/dev

Device the abbreviation, which holds the Linux of external devices, in Linux The way the device is accessed and the way the file is accessed is the same

/etc

Stores all the configuration files and subdirectories required for system administration

/home

User home directory. In Linux , each user has a directory of their own, which is typically named after the user's account name

/lib

Store the most basic dynamic Connection Sharing Library of the system, acting like Windows of the DLL file.

These shared libraries are required for almost all applications

/lost+found

Normally empty, when the system is shut down illegally, some files are stored here

/media

Linux some devices are automatically recognized by the system.

For example U disc, optical drive, etc., when recognized, Linux will mount the identified device to this directory.

/mnt

A directory that lets users temporarily mount other file systems.

we can mount the optical drive in /mnt/ and then enter the directory to see what's in the CD-ROM .

/opt

A directory for the host to install additional software.

For example, you can install a Oracle database in this directory. Default is empty

/proc

The virtual directory, which is a mapping of system memory, can be accessed directly by accessing the directory for System information.

The contents of this directory in memory, you can directly modify some of the files inside.

For example, you can use the following command to block the host Ping commands to make others unable to Ping Your machine:

echo 1 >/proc/sys/net/ipv4/icmp_echo_ignore_all  

/root

User home directory for system administrator

/sbin

s is a Super User The system administrator uses the hypervisor

/selinux

this is Redhat/centos The unique directory, SELinux is a security mechanism, similar to Windows 's firewall.

But the mechanism is more complex, and this directory is the storage SELinux of the relevant files

/srv

This directory is the data that needs to be extracted after some services are started

/sys

/sys this is Linux 2.6 a big change in the kernel.

the directory is installed under the 2.6 A newly emerged filesystem in the kernel Sysfs . The sysfs file system integrates the following 3 file system Information:

for a process proc file System,

Device-specific Devfs File System

and for pseudo-terminal devpts file System.

The file system is a visual reflection of the kernel device tree. When a kernel object is created, the corresponding files and directories are also created in the kernel object subsystem.

/tmp

Temp file directory

/usr

This directory is very important.

Many of the users ' applications and files are placed in this directory, similar to Windows under the Program Files Catalogue

/usr/bin

Applications used by system users

/usr/sbin

More advanced hypervisor and system daemons used by super users

/usr/src

Default drop location for kernel source code

/var

This directory is stocked with things that are constantly expanding, and we are accustomed to placing directories that are often modified in this directory. Include log files

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.