Cloud computing interview FAQ: Linux directory structure

Linux Directory Structure

Windows: a plurality of ways to organize your files C: \ D: \ E: \

Linux: a single way of organizing files /

/ Directory structure: FHS (Filesystem Hierarchy Standard)

Note: The following figure shows the directory structure Centos7

Bin normal users command / bin / ls, / bin / date

Administrators use the command sbin / sbin / service

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

root root user's HOME

ordinary home user's home directory Base

proc virtual file system, reflected in the kernel, or process information in 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 file system, the equivalent of C: \ Windows

/ Usr / local software installation directory, equivalent to C: \ Program

Application / usr / bin normal users

/ Usr / sbin application administrators

/ Usr / lib library Glibc 32bit

/ Usr / lib64 library Glibc 64bit

The system boot files stored start the associated, e.g. kernel, grub (boot loader)

etc Profile

The network system-related / etc / sysconfig / network / etc / hostname

Application configuration files such as / etc / ssh / sshd_config ...

lib library Glibc

lib64 library Glibc

tmp Temporary files (writable: Process generated temporary files)

var is stored in a file some changes, such as databases, logs, e-mail ...

mysql: /var/lib/mysql

vsftpd: / var / ftp

mail: /var/spool/mail

cron: / var / spool / cron

log: / var / log

Temporary Files: / var / tmp (temporary files produced by the process)

Equipment (mainly refers to the storage device) mount directory

The default media mobile device mount point

mnt manually mount the device mount point

misc automount mount process

net automount mount process

Command storage location:

========================================================

/ Dev device file directory (block and character devices)

/ Usr application directory

/ Var log file service (server data directory)

/ Etc directory profile

/ Home general user's home directory

/ Root directory home administrator

/ Boot system startup directory (the kernel boot program startup files)

/ 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 point

/ Opt third-party software (flush, splunk, open office)

/ Media media catalog (CD-ROM disk u)

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

/ Selinux selinux directory security components used

/ Misc and / net autofs service using the directory

/ Srv directory server data

/ Tmp temporary files directory

Guess you like

Origin blog.csdn.net/qfxulei/article/details/95217192