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

How to understand the file system directory structure of Linux

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

Share

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

This article will explain in detail how to understand the file system directory structure of Linux. The content of the article is of high quality, so the editor will share it with you for reference. I hope you will have a certain understanding of the relevant knowledge after reading this article.

For Linux, its tree structure is different from Windows. Windows can have multiple partitions, each partition has a root, but Linux has only one root. All other files, directories or hard disk partitions, floppy disks, CD-ROMs and u disks must be mount (mounted) to a directory under the root of Linux before they can be accessed and used. We'll talk about the mount command and how to mount u disks and other hard disk partitions later. Here first let you have an intuitive understanding of the use of common system directories under the root directory.

/ bin is used to store commands that can be executed by ordinary users.

/ boot is used to store the files necessary for Linux startup, that is, the contents of the boot partition we created.

/ dev is used to store the device files of the system.

/ etc is used to store various configuration files of the system.

/ home is used to store the home directory of each ordinary user of the system.

/ lib is used to store system shared library files.

The file storage directory recovered after the / lost+found file system is corrupted.

/ media Fedora is used to mount the directory of the file system such as CD, U disk, etc.

/ misc is used to mount the NFS shared directory.

/ mnt is used to mount directories for other hard disk partition systems (such as mounting xp partitions).

/ opt the installation site of some third-party software vendors, such as domestic red flag office, is stored here.

/ root root user's home directory, which cannot be accessed by ordinary users.

/ sbin stores system management commands that only root users can run.

/ tmp temporary directory

The directory where / usr is used to store various applications and data files for all users, and there are corresponding directories such as / bin, / lib, / etc, and so on.

/ var is used to store files that change frequently in the system.

The directories that we often visit on a daily basis are / home directory, / mnt directory, / media directory, / usr directory.

On how to understand the Linux file system directory structure to share here, I hope that the above content can be of some help to you, can learn more knowledge. If you think the article is good, you can share it for more people to see.

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