The "/" root directory section has the following subdirectories:
The/usr directory contains all commands, libraries, documents, and other files. These files will not be changed during normal operation. This directory also contains the main applications for your Linux distribution, for example, Netscape.
The/var directory contains files that were changed during normal operation: Spool files, record files, lock files, temporary files, and page format files.
The/home directory contains the user's files: parameter settings files, personalization files, documents, data, EMAIL, cached data, and so on. This directory should be maintained at the system provincial level.
The/proc directory contains all the unreal files. They do not actually exist on the disk, and they do not occupy any space. (Ls–l can be used to display their size) when viewing these files, they are actually accessing the information that exists in memory, which is used to access the system
/bin the execution files (binary) that are required for the system to be started, these files can be used by ordinary users.
/sbin System execution files (binary), these files are not intended to be used by ordinary users. (normal users can still use them, but specify a directory.) )
/etc Operating system configuration file directory.
The home directory of the/root system administrator (also called superuser or root user).
/dev Device file directory. Linux devices are treated as files, which allows the hardware to be abstracted, read-write, network-shared, and temporarily loaded into the file system. Under normal circumstances, the device will have a separate subdirectory. The contents of these devices will appear in separate subdirectories. Linux does not have a so-called driver.
/lib a shared library of programs and core modules under the root file system directory.
/boot files for the bootstrap loader (LILO or GRUB). When the computer starts (if there are multiple operating systems, it is possible to allow you to choose which operating system to start), these files are first loaded. This directory will also contain the Linux kernel (compressed file vmlinuz), but the Linux kernel can also exist elsewhere, as long as Lilo is configured and Lilo knows where the Linux kernel is.
/opt optional applications, such as KDE under REDHAT 5.2 (REDHAT 6.0, KDE in other xwindows applications, main execution program in/usr/bin directory)
/tmp temp file. The directory will be cleaned up automatically.
/lost+found files recovered during file system repair
The more important parts of the "/usr" directory are:
/USR/X11R6 x-windows System (version one, release 6)
/usr/x11 with/USR/X11R6 (/USR/X11R6 's symbolic Connection)
/usr/x11r6/bin a large number of small x-windows applications (and possibly symbolic connections for large execution of files in other subdirectories).
/usr/doc Linux documentation (in the updated system, this directory is moved to/usr/share/doc).
/usr/share separate the data from your computer structure, for example, the words in a dictionary.
/usr/bin and/usr/sbin are similar to directories under the "/" root directory (/bin and/sbin), but are not used for basic booting (for example, in emergency maintenance). Most of the commands are in this directory.
/usr/local an application installed by a local administrator (or a separate subdirectory may be available for each application). After the "main" installation, this directory may be empty. Content in this directory should exist after reinstalling or upgrading the operating system.
/usr/local/bin may be a user-installed small application, and some symbolic connections to large applications in the/usr/local directory.
Contents of the/proc directory:
/proc/cpuinfo information about the processor, such as type, manufacturer, model, and performance.
/proc/devices the list of all devices configured by the current running kernel.
/PROC/DMA The DMA channel that is currently in use. /proc/filesystems the file system that is currently running the kernel configuration.
/proc/interrupts is using the interrupt, and how many interrupts were there.
/proc/ioports the I/O port that is currently in use.
For example, use the following command to read the CPU information of the system.
Cat/proc/cpuinfo
To summarize, say:
· The user should present the file under the/home/user_login_name directory (and its subdirectories).
· In most cases, the local administrator installs additional software in the/usr/local directory and signs the main execution program that is connected under/usr/local/bin.
· All settings of the system are in/etc directory.
· Do not modify anything in the root directory ("/") or/usr directory unless you really know what to do. These directories are best kept consistent with Linux publishing.
· Most tools and applications are installed in the directory:/bin,/usr/sbin,/sbin,/usr/x11/bin,/usr/local/bin.
· All the files are under a single directory tree. There is no so-called "driver".
Transfer from http://www.cnblogs.com/perfy/archive/2012/05/12/2497032.html
(turn) Linux directory structure and main content