The Linux directory structure is simpler than Windows, and the Linux directory is a slash/root and the overall structure is a tree-like structure with/roots.
View Level 1 directory structure using TREE-L 1
/bin common binary command directories. such as (Ls,cp,mkdir,cut), and/usr/bin similar
/boot directory Linux kernel and boot system files required by the program directory
/dev Device file directory, such as sound card, disk information, etc...
/etc common system and binary installation package configuration file default path and Server startup command directory
Home directory for normal users
/lib Library File storage Directory
/lost+found in the Ext3 file system, the system crashes unexpectedly or is accidentally critical, resulting in a file fragment directory
/mnt commonly used to temporarily mount a storage device mount directory, such as CdRom, u disk, etc.
/OPT Custom Package installation directory
/proc operating system runtime, process information and kernel information (such as CPU, disk partition, memory information, etc.), stored here. The/proc directory disguises the file system proc mount directory, Proc is not the real file system. His definition can be found in/etc/fstab.
grep proc/etc/fstab
/root the home directory for super-privileged root
/sbin Super System administration commands
/tmp Temp file directory
The directory of the/USR system storage program. such as commands and help files, etc...
/war This directory content is constantly changing. /war/war/log This is the directory that is used to store the system log. The/war/www directory is the directory where the Apache server site is defined, and/war/lib is used to store some library files, such as MySQL, as well as the MySQL database repository.
Important sub-directories to remember
/etc/sysconfig/network-scripts/ifcfg-eth0 Configuring the NIC address and GW
/etc/resolv setting up DNS for local clients
/etc/hosts set the corresponding table for the user IP and domain name, equivalent to the local LAN internal DNS
/etc/sysconfig/network Modify the machine name and network card startup configuration
/etc/fstab record the file system to mount on boot
/etc/inittab set the INIT process to set the system to what kind of runlevel and load related boot file configuration when the system starts
/etc/exports Setting the configuration file path for NFS systems
The/ETC/INIT.D is used to store scripts that the system or server initiates in System V mode, which is common in systems that are started or initialized in the mode v. such as Centos/redhad;
/ETC/XINIT.D if the server is running in xinetd mode, this script will be under the directory of the House.
/etc/profile system Global environment variable configuration path
Chapter II Linux Directory Learning