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 are the common file directories in Linux

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

Share

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

This article is about what Linux common file directories have. Xiaobian thinks it is quite practical, so share it with everyone for reference. Let's follow Xiaobian and have a look.

In linux everything is stored in file form, there is no C\D we understand in windows…drive letter concept

1. bin directory

binary: directory of executable program files corresponding to a number of instructions

2. sbin directory

Description: super binary many "instructions" corresponding to the "executable program file" directory, the directory file corresponding instructions are "root" users can execute instructions ordinary users can not use the directory commands:

Regular users: Start with $

root user: Start with #

3. usr directory

Description: unxi system resource

unix system resource

This directory is similar to the C:/Program files directory for win systems

This directory is often used to install various software

After the software is installed, a corresponding instruction will be formed, and the executable program file corresponding to the instruction will be stored in the following directory

/usr/bin executable program files directory for many instructions/usr/sbin executable program files directory for instructions executed by root

4. dev directory

Description: device system hardware device directory (all hardware of linux system is represented by files)

For example: /dev/cdrom is the optical drive/dev/sda is the first scsi hard drive

5. home directory

Description: "Home Directory" for regular users

Each time an ordinary user is added to the system, a file directory representing the user's "home directory" will be set in the directory. When the user uses the system later, he will first enter its directory. The name of the home directory is consistent with the name of the current user by default. The user has the absolute highest authority on the home directory.

6. Proc directory

Memory mapping directory, where you can view information about the system

7. var directory

variable, variable, changeable

The files stored in this directory change frequently (add, modify, delete)

Often used to deploy project program (php) files

/var/www/shop

/var/www/book

8. boot directory

Description: System startup core directory, used to store system startup files

Linux kernel files only 18 MB

du -h: View file size

9. etc directory

System main configuration file directory

For example:

/etc/passwd File used to store user information

/etc/group File used to store group information

10. lib directory

library: system resource file class library directory

11. Selinux Directory (Secure Enhanced Linux)

Description: Security enhanced linux forms protection for the system

There will be some impact when installing software

12. mnt directory

Note: Store temporary mapping file system, we often mount floppy disk drive and optical drive in the floppy and cdrom subdirectories here.

13. tmp directory

Description: Directory for temporary files

Thank you for reading! About "Linux common file directory what" this article is shared here, I hope the above content can have some help for everyone, so that everyone can learn more knowledge, if you think the article is good, you can share it to let more people see it!

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

Development

Wechat

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

12
Report