Go to the Linux root (i.e. "/", the entry for the Linux filesystem, and the directory at the top level), run the "ls–l" command and you can see that the Linux system contains the following directories.
1. /bin
Contains basic commands, such as LS, CP, mkdir, and so on, the files in this directory are all executable.
2. /boot
The kernel of the Linux system and the files required by the boot system program, such as Vmlinuz, initrd.img files, are located in this directory.
3. /dev
Device file storage directory where applications can access actual devices through read-write and control of these files.
4. /etc
The location of the system configuration file, some server configuration files are also here, such as user account and password configuration file.
5. /home
Home directory for ordinary users.
6. /lib
The library file holds the directory.
7. /lost+found
In the EXT2 or Ext3 file system, some file fragments are placed here when the system crashes unexpectedly or the machine shuts down unexpectedly.
8. /mnt
/mnt This directory is generally used to store mounted storage device mount directory, such as CDROM and other directories, you can see the definition of/etc/fstab. Sometimes we can put the system boot automatically mount file system, put the mount point here is also possible.
9. /opt
Opt is "optional" and some packages will be installed here, such as the Openof fice in Fedora Core 5.0 is installed here, and the user-compiled packages can be installed in this directory.
10. /proc
When the operating system is running, process and kernel information (such as CPU, hard disk partition, memory information, etc.) is stored here. The/proc directory is the mount directory of the pseudo file system proc, Proc is not a real file system, it exists in memory.
11. /root
Home directory for Linux Super User root.
12. /sbin
Storing execution files, mostly related to system management commands, is the super-user root execution command storage, ordinary users do not have permission to execute the command under this directory, this directory and/usr/sbin;/usr/x11r6/sbin or/USR/LOCAL/SBI The n directory is similar.
13. /tmp
Sometimes when a user runs a program, a temporary file is generated and/TMP is used to store temporary files.
14. /usr
This is a directory of system storage programs, such as commands, help files, etc., it contains a lot of files and directories, Linux distribution provided by the package is mostly installed here.
15. /var
var indicates the meaning of the change, the contents of this directory are often changed, such as the/var/var/log directory is used to store the system log.
16. /sys
The Sysfs file system supported by the Linux 2.6 kernel is mapped in this directory. The bus, driver, and device in the Linux device driver model can find the corresponding node in the Sysfs file system. When the kernel detects that a new device appears on the system, the kernel generates a new record for the new device in the Sysfs file system.
17. /initrd
If the INITRD image is used as a temporary root filesystem during startup, the original initial RAM file system is mapped to the/INITRD directory after the actual root filesystem is hooked up after the/LINUXRC is executed.
Linux File System---10