Linux File system detailed
Non-original works, allow reprint, please be sure to use hyperlinks in the form of the original source of the article, author information and this statement. Otherwise, the legal liability will be investigated. http://liangweilinux.blog.51cto.com/8340258/1670600
/root directory
/ boot system boot related files, such as kernel, INITRD, and Grub (bootloader)
/ Dev Device File block device: Random access, data block character device: linear access.
/ etc system global configuration file
/ home directory for normal users, home directory for every ordinary user, usually default to/home/username
The root user does not have a home directory, but a separate/root directory
/root Administrator user's home directory
/lib library file: Static library. A dynamic library. So (Shared object)/lib/modules: Kernel module files
/media hang in the point directory, move the settings
/mnt Extra Point directory, additional temporary file system
/media/mnt are all mount points.
/OPT Optional directory, third-party program manufacturer driver
/proc pseudo file system, the kernel map file system is often used when tuning
/sys Pseudo file system, property mapping files related to hardware devices
/ tmp temp file,/var/tmp will periodically clean up
/ var variable file, usually a directory for log files.
/bin executable file, user command
/sbin administrators to execute commands
/bin and/sbin all need to trust the files in/lib
/ usr Global shared read-only file Universal shared,read-only
/usr/local Local Data storage directory
/etc/Directory
/etc/sysconfig/network-scripts/ifcfg-eth0 Nic Path, modify the reboot to take effect.
/etc/init.d/network Restart Restart network adapter---configuration file Onboot=yes need to be opened
Ifdown eth0 && ifup eth0 Close and start network card view NIC: Ifconfig
/etc/sysconfig/network Modify the hostname configuration file, or you can configure the gateway, Hostname=name
Hostname xuliangwei.com temporary entry into force
/etc/hosts Static host query
Host in the Enterprise function
1. Development, product, testing and other personnel, used to pass the formal domain name testing products.
2. Calls between servers can be easily migrated with domain names (internal DNS).
/etc/resolv.confDNS Client configuration file, if DNS is configured on the NIC, takes precedence over NIC
/etc/fstab boot automatically mount disk
1. Equipment
2. Mount point
3. File system type
4. Mounting options
5. Backup 0 unprepared
6. Boot Detection Disk 0 does not scan
/etc/rc.local Server profile, all programs boot up can be put into/etc/rc.local
/etc/initttab Control boot default boot level
/ETC/INIT.D The path to the startup script
/etc/profile System environment variables
/ETC/PROFILE.D Program or script (re-login execution) The location of the script executed after login
/etc/passwd User database files, user names, home directories, encrypted passwords, or other
/etc/shadow Shadow password file, the user password is stored here, only the root readable, making it more difficult to decipher the password
/etc/group user Group database files
/etc/gshadow Group password file
/etc/sudoers can be sudo command configuration file-C detection syntax
/usr/Directory
/USR/SRC Source code, the kernel source code storage location
/usr/local Compiling the installation, storing the path
/usr/bin binary execution file
/usr/sbin commands used by administrators (binary)
/usr/lib Store Some common dynamic link shared libraries and static archives;
/USR/LOCAL/SRC Source Package storage Directory
/usr/local/bin Source code compiled to store binary files
/usr/local/sbin Source compiled binary file administrator executable
/usr/local/lib source file binary Library
/var/Directory
/var/log/messages System log
/var/log/secure System security log (security monitoring)
/var/spool/cron/root Timer Task Crond profile
/var/spool/clientmqueue/when the mail service is not turned on, all messages that should be sent to the system administrator are stacked in this
/var/spool/mail/ Mail Directory
/proc/Directory
A virtual file system that archives the kernel and process state as a text file (System information is stored in this directory).
/proc/meminfo Viewing memory information
/proc/loadavg Viewing load information
/proc/uptime is to use uptime time, will appear the information!
/proc/cpuinfo View CPU information, type, manufacturer and performance, etc.
Linux Naming conventions
1, the length can not exceed 255 characters
2. Cannot use/when file name
3. Strictly case-sensitive
This article is from the "Xu Liangwei" blog, make sure to keep this source http://liangweilinux.blog.51cto.com/8340258/1670600
This article is from the "sun shines on the beach" blog, please be sure to keep this source http://351sun.blog.51cto.com/2483202/1672202
Linux File system detailed