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 Linux directory structure?

2025-04-05 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 specific structure of the Linux directory, many people may not know much about it. In order to make you understand better, the editor summed up the following content for you. I hope you can get something according to this article.

Linux directory structure

=

Windows: organize files C:\ d:\ e:\ in a multi-root manner

Linux: organize files as a single root /

/ directory structure: FHS (Filesystem Hierarchy Standard)

Note: the following figure shows the Centos7 directory structure

Commands / bin/ls, / bin/date used by ordinary bin users

Commands used by sbin administrators / sbin/service

Dev device file / dev/sda,/dev/sda1,/dev/tty1,/dev/tty2,/dev/pts/1, / dev/zero, / dev/null, / dev/random

HOME of the root root user

Home ordinary user home Base directory

Proc virtual file system that reflects the kernel, process information, or real-time status

[root@tianyun ~] # ps aux | grep sshd

Root 1241 0.0 0.0 82468 1400? Ss 06:29 0:00 / usr/sbin/sshd

Usr system file, which is equivalent to C:\ Windows

/ usr/local software installation directory, which is equivalent to C:\ Program

/ usr/bin applications used by ordinary users

/ applications used by usr/sbin administrators

/ usr/lib library file Glibc 32bit

/ usr/lib64 library file Glibc 64bit

Boot stores files related to system startup, such as kernel,grub (bootloader)

Etc profile

System related, such as network / etc/sysconfig/network / etc/hostname

Apply relevant configuration files such as / etc/ssh/sshd_config...

Lib library file Glibc

Lib64 library file Glibc

Tmp temporary files (globally writable: temporary files generated by the process)

Var stores some change files, such as database, log, mail.

Mysql: / var/lib/mysql

Vsftpd: / var/ftp

Mail: / var/spool/mail

Cron: / var/spool/cron

Log: / var/log

Temporary file: / var/tmp (temporary file generated by the process)

= = device (mainly refers to storage device) mount directory =

Default mount point for media mobile devices

The mount point of the mnt manual mount device

Misc automount process mount

Net automount process mount

Command storage location:

=

/ dev device file directory (block devices and character devices)

/ usr application directory

/ var log, service file (server data directory)

/ etc configuration file directory

/ home ordinary user home directory

/ root administrator home directory

/ boot system boot directory (kernel boot file bootstrap)

/ proc pseudo file system (hardware information, kernel parameters, process information in memory)

/ sys pseudo file system (hardware information, kernel parameters, process information in memory)

/ mnt other mount points

/ opt third party software (flush,splunk,open office)

/ media media directory (CD-ROM)

/ cgroup resource control directory (memory cpu....)

Directory used by / selinux selinux security components

Directories used by / misc and / net autofs services

/ srv server data directory

/ tmp temporary file directory

After reading the above, do you have any further understanding of the Linux directory structure? 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