Linux file structure

Different from the disk partition structure of the Windows system to access the file system, Linux represents the entire file system as a tree structure, and each additional file system will be mounted in this tree.

The file structure starts with the root directory, and everything starts from the root directory, denoted by " / ", and extends to subdirectories. Linux places all partitions in various directories of the "root" by mounting.


/bin: store the command

/dev: special files for storing device files, such as fd0 , had , etc.

/home: Stores user accounts and supports ftp user management. When the system administrator adds users, the system creates a directory with the user's username under the home directory. Generally, there is a Desktop directory in this directory by default ;

/etc: The configuration file required by the Linux system to boot, the configuration file is read when the system is booted, and different situations are started according to the options of the configuration file, such as fstab , host.conf , etc.

/mnt: It is dedicated to serving external file systems, including cdrom and floopy , which will be used when logging in CD-ROM and floppy drives.

/tmp: store temporary files

/usr: includes everything else like src , local . The Linux kernel is in /usr/src . There is a subdirectory /bin under it, which stores all the installation language commands, such as gcc , perl , etc.

/lib: Contains the function library required by the c compiler, which is a set of binary files, such as glibc , etc.

/var: Contains system definition tables so that only this directory can be backed up when the system changes, such as cache

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325579784&siteId=291194637