Directory Content / Root directory, everything starts here /bin A binary file (program) that contains the necessary system startup and operation /boot Contains the Linux kernel, the initial RAM disk image (used by the driver at system startup), and the boot loader interesting files:? /boot/grub/grub.conf or menu.lst, used to configure the boot loader? /boot/vmlinuz,Linux kernel /dev This is a special directory that contains the device nodes. "Treat everything as a document" also applies to devices. The kernel stores all the devices it can identify in this directory. /etc The/etc directory contains all system-level configuration files and includes a series of shell scripts that open each system service each time the system is started . The content contained in this directory should be a readable text file. Interesting file: Although Any files in the/etc directory are interesting, here are just a few of the files I've always liked:? /etc/crontab, does this file define when an automated task runs? /etc/fstab, a list of storage devices and associated mount points? /etc/passwd, user account list /home In the usual configuration, each user will have a directory of their own in the/home directory. Ordinary users can only create files in their own home directory. This limitation protects the system from the failure of the wrong user behavior /lib Contains shared library files used by core system programs. This is similar to DLLs in Windows Systems /lost+found This directory will be available for each formatted partition or device that uses the Linux file system, such as the ext3 file system. When the file system crashes, the directory is used to recover the partition. This directory is always empty unless the system really has a serious problem /media In modern Linux Systems,the/media directory contains mount points that can remove media devices. such as USB Drive,CD-ROM , etc. These devices are automatically mounted to this directory node after they are plugged into the computer /mnt In an earlier Linux system,the/mnt directory contains a mount point for manually mounted removable devices /opt The/OPT directory is used to install additional optional software. Primarily used to store commercial software that may be installed in the system /proc The/proc directory is very special. From a file point of view, it is not a real file system stored on the hard disk, but rather a Virtual file system maintained by a Linux kernel. It contains files that are the core peep holes. The file is readable, from which you can see how the kernel regulates the computer's /root the root account's home directory /sbin This directory places the "system" binary files. These programs perform important system tasks, which are usually reserved for super users. /tmp /tmp is a directory for users to store temporary files created by various programs. Some configurations cause the directory to be emptied every time the system restarts /usr The/usr directory is probably The largest directory tree in a Linux system. It contains all programs and related files used by ordinary users /usr/bin Some executable programs installed on Linux distributions are placed in the/usr/bin directory . This directory typically stores thousands of programs /usr/lib shared libraries used by programs in the/usr/bin directory /usr/local This /usr/local directory is the installation directory for programs that are not brought in by the system release but are intended to be used by the system. Programs compiled from source code are usually installed in /usr/local/bin . In a newly installed Linux system, this directory exists, but it is an empty directory until the system administrator adds content to it /usr/sbin Contains more system management programs /usr/share The/usr/share directory contains All the shared data used by programs in/usr/bin, including default profiles, icons, screen backgrounds, audio files, etc. /usr/share/doc Most of the packages installed in the system contain some documentation files. In /usr/share/doc , document files are organized according to the package /var In addition to the/ tmp and/ Home directories, the directories currently seen are relatively static, that is, the content they contain is constant. The data that may change is stored in the/ var directory tree. All kinds of databases, spool files, user mail, etc. are stored here /var/log The/var/log directory contains log files that record various system activities. These files are important, and they should be monitored from time to time. One of the most useful files is /var/log/messages. Note that for security reasons, in some systems, you must be a superuser to view the log files |