Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What is the use of the directories in Linux

2025-01-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

Today, I will talk to you about the use of various catalogs in Linux. Many people may not know much about it. In order to make you understand better, the editor has summarized the following contents for you. I hope you can get something according to this article.

/ bin

Bin is the abbreviation of binary. This directory follows the structure of the UNIX system and stores the commands that users use most frequently. Such as cp, ls, cat, and so on.

/ boot

Here are some of the core files used to start Linux.

/ dev

Dev is the abbreviation of device (device). In this directory are all Linux peripherals, which function similar to .sys under DOS and .vxd under Win. In Linux, devices and files are accessed in the same way. For example: / dev/hda represents the first physical IDE hard drive.

/ etc

This directory is used to store configuration files and subdirectories needed for system management.

/ home

The user's home directory, for example, if there is a user named wang, then his home directory is / home/wang can also be represented by ~ wang.

/ lib

This directory stores the system's most basic dynamic link sharing libraries, which are similar to .dll files in Windows. Almost all applications need to use these shared libraries.

/ lost+found

This directory is usually empty, and when the system shuts down abnormally, it becomes a refuge for homeless files. By the way, it's kind of similar to the .chk file under DOS.

/ mnt

This directory is empty, and the system provides this directory for users to mount other file systems temporarily.

/ proc

This directory is a virtual directory, it is a mapping of system memory, we can access this directory directly to get system information. In other words, the contents of this directory are not on the hard drive but in memory.

/ root

The home directory of the system administrator (also known as superuser). As the owner of the system, there must be some privileges. For example, have a separate directory.

/ sbin

S means Super User, which means that what is stored here is the management program used by the system administrator.

/ tmp

Needless to say, this directory must be used to store some temporary files.

/ var

This directory contains things that are constantly expanding, and in order to keep / usr relatively stable, directories that are often modified can be placed in this directory, as many system administrators actually do. By the way, the log files for the system are in the / var/log directory.

/ usr

This is the largest directory, where almost all the applications and files we need are stored. It contains the following subdirectories

/ usr/X11R6

Directory where X-Window is stored

/ usr/bin

Many applications are stored

/ usr/sbin

Some of the management programs for superusers are put here.

/ usr/doc

This is the home of Linux documents.

/ usr/include

The header files needed to develop and compile applications under Linux are found here.

/ usr/lib

Store some commonly used dynamic link shared libraries and static archives

/ usr/local

This is the / usr directory for ordinary users, where it is most appropriate to install software

/ usr/man

Man is synonymous with help in Linux. Here is the directory where the help documents are stored.

/ usr/src

Linux open source code exists in this directory, fans do not let go!

After reading the above, do you have any further understanding of the usefulness of the catalogs in Linux? If you want to know more knowledge or related content, please follow the industry information channel, thank you for your support.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report