Summary of directory knowledge Points:
Note:
1. Create a/server/scripts directory to hold the script (command: Mkdir-p/server/scripts)
2. When installing the software, the installation path is unified to/usr/local/software name-version number
3. After installing the software, you need to do a soft link (ln-s/usr/local/software Name-version number//usr/local/software name)
|
Important Sub-directories |
File role |
|
/etc/sysconfig/network-scripts/ifcfg-eth0 |
NIC Configuration |
|
/etc/resolv.conf |
Local DNS configuration |
|
/etc/hosts |
Local DNS resolution, IP and domain name corresponding parsing table |
|
/etc/sysconfig/network |
Configure host Name |
|
/etc/fstab |
Implement a file to mount the file system to be mounted |
|
/etc/crontab,/var/spool/cron/root |
Timed task profiles, each user generates an auto-generated crontab file, typically located in the/var/spool/cron directory.
Note that ordinary users generally do not have access to/var/spool/cron |
|
/etc/rc.local |
file that holds the Boot program command
Chkconfig a service that is commonly used to manage YUM/RPM-installed programs boot from
own development of the program, used to put the start command into the/etc/rc.local, to enable the start of these programs, Linux power on the landing before the rc.local will be executed once |
|
/etc/inittab |
Set the boot file settings for the INIT process to set the system to the operating level and load related levels when the system starts |
|
/etc/exports |
Setting the configuration file for NFS Network File system |
|
/etc/init.d |
The default launcher directory for the software installed by the Yum or RPM tool |
|
/etc/profile |
Configuration file for the Global environment variable to be permanently active |
|
/etc/profile.d |
Load system login A directory, command or file exists independently |
|
/etc/issue |
Set up prompt before landing |
|
/etc/motd |
Set up prompt after login |
|
/etc/redhat-release |
View version number |
|
/usr/local |
Used to store users ' own installed programs |
|
/var/log |
Various System log storage location |
|
/var/log/messages |
System Information The default log file is very important. |
|
/var/log/secure |
Record log in system access information file, automatic polling by week |
|
/proc/version |
Kernel version |
|
/proc/sys/kernel |
System kernel functions |
|
/proc/cpuinfo |
Information about the processor |
|
/proc/meminfo |
System Memory Information Free-m |
|
/proc/loadavg |
System load Average information |
|
/proc/mounts |
Device Mount Information df-h |
Linux Operations Learning notes-Directory Knowledge points Summary