Linux directory structure and the role of each directory

Source: Internet
Author: User

The Linux directory and the Windows directory are very different, the Linux directory is similar to a tree, the topmost layer is its root directory, such as:


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

/boot
Here are some of the core files used when starting Linux.

/dev
Dev is the abbreviation for device (devices). This directory is the external device for all Linux, which functions like the. SYS and the. vxd under Win in DOS. In Linux, devices and files are accessed in the same way. For example:/dev/hda represents the first physical IDE hard disk.

/etc
This directory is used to store the configuration files and subdirectories required for system administration.

/home
The user's home directory, such as a user named Wang, his home directory is/home/wang can also be expressed in ~wang.

/lib
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.

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

/mnt
This directory is empty and the system provides this directory to let users temporarily mount other file systems.

/proc
This directory is a virtual directory, it is the 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.

/root
The home directory of the system administrator (also called the Superuser). As the owner of the system, there must be some privilege! such as owning a directory alone.

/sbin
S is the meaning of super user, which means that the management program used by the system administrator is stored here.

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

/var
The directory is stocked with things that are constantly expanding, 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.

/usr
This is the largest directory, and almost all of the applications and files we use are stored in this directory.


Linux directory structure and the role of each directory

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.