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 directory structure of linux files

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

Share

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

This article mainly introduces what is the directory structure of linux files, which can be used for reference by friends who need it. I hope you will learn a lot after reading this article. Next, let the editor take you to learn about it.

/ bin [emphasis] (/ usr/bin, / usr/local/bin) is an abbreviation for Binary. This directory contains the most frequently used commands.

/ sbin (/ usr/sbin, / usr/local/sbin) s means Super User, and here is the system management program used by the system administrator.

/ home [key] stores the home directory of ordinary users. In Linux, each user has his own directory, which is usually named after the user's account.

/ root [key] this directory is the user home directory of the system administrator, also known as the super-privileged.

/ lib system boot requires the most basic dynamic link sharing library, which is similar to the DLL file in Windows. Almost all applications need to use these shared libraries.

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

/ etc [emphasis] all configuration files and subdirectories required for system management my.conf

/ usr [key] this is a very important directory where many of the user's applications and files are placed, similar to the program files directory under windows.

/ boot [key] stores some core files used when starting Linux, including some connection files and image files

The following three files are related to the liunx kernel.

The / proc directory is a virtual directory, which is a mapping of system memory. Visit this directory to get system information.

Abbreviation / srv service, this directory stores some data that needs to be extracted after the service is started.

/ sys this is a big change in the linux2.6 kernel. A new file system in the 2.6 kernel is installed in this directory

/ tmp this directory is used to store some temporary files.

/ dev is similar to windows's device manager, which stores all hardware in the form of files.

/ media [key] linux system will automatically identify some devices, such as USB flash drive, optical drive, etc., when identified, linux will mount the identified devices to this directory.

/ mnt [key] the system provides this directory to allow users to mount other file systems temporarily. We can mount external storage on / mnt/, and then enter the directory to view the contents. D:/myshare

/ opt this is the directory where additional software is installed for the host. If you install the ORACLE database, you can put it in this directory. The default is empty.

/ usr/local [key] this is another directory where additional software is installed for the host. A program that is usually installed by compiling source code.

/ var [key] this directory contains things that are constantly expanding, and it is customary to put directories that are often modified in this directory. Including various log files.

/ selinux [security-enhanced linux] 360 SELinux is a security subsystem that controls that programs can only access specific files.

Thank you for reading this article carefully. I hope it is helpful for everyone to share the directory structure of linux files. At the same time, I also hope that you can support us, pay attention to the industry information channel, and find out if you encounter problems. Detailed solutions are waiting for you to learn!

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