Windows sees the hard disk as "C-Drive", "D-Disk" several separate partitions, Linux as the entire file system as a tree, the tree's roots are called the root file system, with/representation. Each partition is accessed as a folder by mounting (Mount).
-
/bin
-
This directory contains commands to complete basic maintenance tasks that are available to all users. Where bin is a binary abbreviation that represents a binary file, typically an executable file. Some commonly used system commands, such as CP, LS, etc., are saved in this directory.
-
/boot
-
Here are some of the core files used when starting Linux. such as operating system kernel, boot program grub and so on.
-
/dev
-
All system device files are included in this directory. Various system devices can be accessed from this directory. such as CD-ROM, disk drives, modems, and memory. This directory also contains a variety of useful features, such as Makedev for creating device files.
-
/etc
-
This directory contains the configuration files for the system and application software.
-
/etc/passwd
-
The directory contains user-descriptive information from the system, with each row recording a user's information.
-
/home
-
Store personal files for normal users. Each user's home directory is named
under their own user name under//.
-
/lib
-
This directory contains the system's most basic shared-link libraries and kernel modules. The shared link library is functionally similar to a. dll file in Windows.
-
/lib64
The
-
64-bit system has a library of this folder, 64-bit programs.
-
/lost+found
-
This is not part of the Linux directory structure, but rather the place where the Ext3 file system is used to save lost files. Improper shutdown and disk errors can result in file loss, which means that these are labeled "in use" but are not listed on the data structure on disk. Normally, the boot process runs the FSCK program, which can discover these files. In addition to this directory on the "/" partition, there is a lost+found directory on each partition.
-
/media
-
Removable device mount point, the current operating system will usually be a USB drive and other devices automatically mounted to the folder.
-
/mnt
-
a temporary place to mount the file system. In general, this directory is empty, and when we are going to mount the partition, we will set up a directory in this directory, and then mount the device we are going to access in this directory so that we can access the file. (Note that in GNOME, only the folders that are mounted to
/media will be displayed in the "Computer" and mounted to the
/mnt will not be displayed as a special device, see automatically mount partitions)
-
/opt
-
Most third-party software is installed to this location by default, such as Adobe Reader, Google-earth, and so on. Not every system will create this directory.
-
/proc
-
It is a virtual file system that exists in memory. It holds the kernel and process state information. Many are text files and can be viewed directly. For example,
/proc/cpuinfo saves information about the CPU.
-
/root
-
This is the root user's home directory. Similar to the directory under/
home that is reserved for individual users, this directory also contains entries that are only related to the root user.
-
/sbin
-
executable files for super users, many of which are system administration commands such as fsck, reboot, shutdown, ifconfig, etc.
-
/tmp
-
This directory is used to save temporary files. This directory has sticky special permissions that allow all users to create and edit files in this directory. However, only the file owner can delete the file. In order to speed up the access of temporary files, some implementations put/
tmp in memory.
-
/usr
-
static user-level applications, etc.
-
/var
-
Dynamic Program data, etc.
directory Structure of Linux systems