The root file directory under Linux is detailed

Source: Internet
Author: User

1) directory Structure and role

/bin stores the command directory for Linux general users

/boot stores some of the core files used when starting Linux, including some connection files and image files

/dev stores Linux external devices, accesses devices in Linux in the same way and accesses files in the same way

/etc store all the configuration files and subdirectories required for system administration

/home storage for Linux system users

/lib This directory contains the system's most basic dynamic connection shared library, which acts like a DLL file in Windows.

These shared libraries are required for almost all applications

/lost+found This directory is generally empty, and when the system shuts down illegally, some files are stored here.

/media store mounted devices, the Linux system will automatically identify some devices,

For example, USB flash drive, optical drive, etc., when identified, Linux will attach the identified device to this directory

The/MNT system provides this directory for users to temporarily mount other file systems,

We can mount the optical drive on the/mnt/, then enter the directory to see the contents of the CD-ROM, the default null

/opt This is the directory where additional installation software for the host is placed. For example, if you install an Oracle database, you can put it in this directory. The default is empty

/proc This directory is a virtual directory, it is the mapping of system memory, we can access this directory directly to obtain system information.

The contents of this directory are not on the hard disk but in memory, we can also directly modify some of the files inside,

For example, you can use the following command to block the host's ping command, so that others cannot ping, your machine:

         echo 1 > /proc/sys/net/IPv4/Icmp_echo_ignore_all

Directory of/root Super Admins

/sbin the command directory used by the Super administrator

/selinux This directory is unique to Redhat/centos, SELinux is a security mechanism, similar to Windows Firewall, but this mechanism is more complex,

This directory is where SELinux-related files are stored

/srv This directory holds data that needs to be extracted after some services have been started, default is empty

< Span class= "PLN" >< Span class= "PLN" >/sys    This directory installs a new file system  sysfs  in the 2.6 kernel. This is a big change in the linux2.6 kernel 。

The Sysfs file system integrates the following 3 file system information:

The proc file system for process information, the Devfs file system for the device, and the Devpts file system for the pseudo-terminal.

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 store Some temporary files in the directory

/usr the directory where users ' applications and files are stored is important

/usr/bin User's application

/usr/sbin Administrator program and System daemon for super users

/USR/SRC The default placement directory for the 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. Includes various log files

The system runs a lot of programs, then each program will have a corresponding log generated, and these logs are recorded in this directory,

In the/var/log directory, in addition to mail preset placement is also here

The root file directory under Linux is detailed

Related Article

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: 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.