Introduction to the Linux root directory folder

Source: Internet
Author: User


/bin

bin is the abbreviation for binary. This directory inherits the structure of the UNIX system and stores the commands most often used by the user. such as CP, LS, cat, and so on.

here is a boot linux some of the core files used, such as kernel initrd,grub.

/dev

dev linux devices and files are accessed in the same way. For example:/dev/hda represents the first physical IDE hard disk.

/etc

etcetera abbreviation. System and application of the configuration files, text format storage.

/etc/gateways

Set up a router

/etc/sysconfig/

Network-scripts

/ifcfg-eth0

Set IP

/etc/resolv.conf

Set up DNS

/etc/fstab

Record the file system to mount on boot (use this file for disk quotas)

/etc/inittab

Set what runlevel the INIT process sets the system to when the system starts (sixth chapter has been useful)

/etc/group

Set the user's group name and related information

/etc/passwd

Account information

/etc/shadow

Password information

/etc/exports

Set up for NFS systems

/home

The user's home directory, such as a user named Zhong, his home directory is/home/zhong can also be used to express ~zhong.

/lib

library abbreviation library file, (Static library, dynamic library) This directory contains the system's most basic dynamic link sharing library, which acts like a. dll file in Windows. These shared libraries are required for almost all applications. Note: The library file cannot be run directly and can only be called by the program's Access \ Execute interface.

/lost+found

This directory is usually empty, and when the system shuts down, it becomes a refuge for homeless files. Yes, a bit like the. chk file under DOS.

/meida

mount point Directory--Mobile device

mount abbreviation. This directory is to allow users to temporarily mount other file systems.

/proc

This directory is a virtual directory, it is a mapping of system memory, we can access this directory directly to obtain system information. In other words, the contents of this directory are not on the hard disk but in memory.   (can see kernel working properties)

/root

The home directory of the system administrator root.

/sbin

s That's what Super user means, which means that the admin program used by the system administrator is stored here.

/sys

A pseudo file system, a property mapping file associated with a hardware device.

/tmp

This directory, needless to say, must be the place to store some temporary files.

/usr

This is the largest directory, and almost all of the applications and files we use are stored in this directory. The following subdirectories are included;

/usr/x11r6

A directory for storing X-window;

/usr/bin

Store many applications;

/usr/sbin

Some management programs for super users are put here;

/usr/doc

This is the base of the Linux documentation;

/usr/include

Linux

/usr/lib

Store some common dynamic link shared libraries and static archives;

/usr/local

This is provided to the general user of the/usr directory, where the installation of software is most suitable;

in Linux is a synonym for help, here is the directory where the help document is stored;

/usr/src

Linux Open source code exists in this directory

There are a variety of files stored, in order to maintain the relative stability of/usr, those directories that are often modified can be placed in this directory, in fact, many system administrators do this. Incidentally, the system's log files are in the/var/log directory.

/srv

server

miscellaneous devices (Misc device) Miscellaneous devices are also a device driver that is used more in embedded systems.

/cgroup

Cgroup is the controller group. is a mechanism provided by the Linux kernel that restricts, records, and isolates the physical resources (such as cpu,memory,io, etc.) used by the process group (groups). Cgroups is also the resource management tool that LXC uses to implement virtualization.


This article is from the "zgysolution" blog, make sure to keep this source http://zgysolution.blog.51cto.com/9605745/1587383

Introduction to the Linux root directory folder

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.