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 purpose of the directory of Linux

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

Share

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

This article mainly introduces "what is the use of the directory of Linux". In the daily operation, I believe many people have doubts about the use of the directory of Linux. The editor consulted all kinds of materials and sorted out simple and easy-to-use methods of operation. I hope it will be helpful to answer the question of "what is the use of the directory of Linux?" Next, please follow the editor to study!

Linux

Because Linux uses a different file system from Windows, it does not understand the file management mode familiar to Windows users. Here is a brief description of the purpose of the directory under the root ("/") directory of Linux.

/ boot directory: protect the system's boot-related files

Kernel file

Partition is required for installation, which is about 128m.

Boot files, such as grub, load the core with grub

Don't change anything in this catalog.

/ etc directory:

Put some configuration files commonly used in the system, such as those that system administrators often need to modify, and configuration files that determine the behavior of the system.

Be sure to back up this directory when backing up the system

Can change the running behavior of the software

/ bin directory: commands commonly used by users, such as files and directories

The commands in this directory can be used by everyone.

/ sbin directory:

Save commands used for system maintenance, such as mkfs,fdisk

Ordinary users don't need it.

There are many commands that only administrators can use (root)

/ lib directory: the library file that the system is running

Static library .a

Dynamic library .so

Don't change it.

/ dev directory: system devices are files

/ dev/cdrom: this is the CD-ROM drive

/ dev/hda: this is the hard drive

/ dev/sda: this is also the hard drive

/ var directory: save changed data

Log file

Offline file

Print queue

/ mnt directory: the system is used to install the file system directory

Usually the CD-ROM floppy disk must be mounted before it can be used.

The system reserved directory for mounting

Mount command mount, uninstall command unmount

CD: / mnt/cdrom

USB flash drive: / mnt/db2

/ proc directory: system memory / CPU mapping

Does not take up storage space, remap after reboot

/ tmp directory: used to save temporary files generated when the system is running

/ usr directory: used in the system to store user-related information

/ home directory: normal directory home directory in the system

/ root directory: superuser home directory

Many of the other directories are meaningless and some are empty. Don't worry about it for a while.

At this point, the study on "what is the use of the Linux directory" is over. I hope to be able to solve your doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!

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

Internet Technology

Wechat

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

12
Report