0x01 Linux --- file system directory structure

1./bin
contains basic commands such as ls, cp, mkdir, etc., the files in the directory are executable.
2./sbin
contain system commands, such as modprobe, hwclock, ifconfig, etc., are mostly involved in system administration commands, the files in the directory
are executable.
3./dev
device file storage directory, read and write through the application and control of these documents in order to access the actual device.
4./etc
location system configuration files, some of the server's configuration file is also here, such as user account and password configuration file. busybox's
startup scripts are also stored in the directory.
5./lib
system libraries store catalog.
6./mnt
/ mnt This directory is typically mounted storage device for storing the mount directory, such as directory containing cdrom like. See can / etc fstab is /
defined. Sometimes we can let the system boot automatically mount the file system, and the mount point on here.
7./opt
opt is "optional" means, some packages will be installed here.
8./proc
operating system is running, process and kernel information (such as CPU, hard disk partitions, memory information, etc.) stored in here. / proc directory is a pseudo
file system mount proc directory, not the real proc file system, which exists in memory.
9./tmp
user to run the program, it is sometimes produce temporary files, / tmp is used to store temporary files.
10./usr
This is the directory system stored procedures, such as user command, the user libraries.
11./var
var represents the change in the meaning of this directory change frequently, such as of / var / var / log directory is used to store the system log.
12./sys
Linux 2.6 kernel later supported by the sysfs file system is mapped on this directory. Linux device driver model bus, driver
and equipment can be found in the corresponding node in the sysfs file system. When the kernel detects the emergence of new devices in the system, the kernel will sysfs
generating a new record for the new device file system.

Reference: "Linux device driver development explain"

Published 31 original articles · won praise 17 · views 10000 +

Guess you like

Origin blog.csdn.net/q759451733/article/details/102942081