Study Notes 11 - Linux systems and content important subdirectories Summary

1./etc/sysconfig/network-scripts/ifcfg-eth0

NIC configuration file, under different circumstances might "eth0 section is slightly different."

Restart the card can operate as follows:

#service network restart

This operation for all network cards.

2./etc/resolv.conf

Setting linux local DNS client files, DNS can be achieved with each other to resolve domain names and IP

3./etc/sysconfig/network

You can modify the machine name and the card starts, gateway configuration

4./etc/hosts

Set the user name and IP (or domain name) of the corresponding analytical table, corresponding to the local LAN DNS, C similar to the windows: \ WINDOWS \ system32 \ drivers \ etc \ hosts.

5./etc/fstab

Record boot to mount a file system file

6./etc/re.local

Storing boot from the start program command file (chkconfig can only manage startup programs yum rpm installed programs /)

7./usr/lib/systemd/system/ctrl-alt-del.target

Run level of the system when the system is set to start (centOS7 are called targets) and related startup to load the configuration file

8./etc/exports

Setting a network file system NFS profile

9./etc/init.d

Used to store system or server startup script to System V mode, which is more common during system startup or initialization to System V mode. As CentOS, RedHat like.

10./etc/profile

System Global configuration path environment variable

11./etc/profile.d

Loading system login program, command or file alone.

12./etc/issue

Record information (system version, kernel version) display before user login

13./etc/motd

Store the login prompt

14./etc/redhat-release

Including statements row RedHat system version and name

15./etc/group

Set the user's name and group information

16./etc/passwd

Store account information files

17./etc/shadow

Store the password file

18./etc/sudoers

sudo命令的配置文件

visudo命令就类似于vi /etc/sudoers命令。

19./etc/securetty

设定哪些终端可以让root登录

20./etc/login.defs

所有用户登录时的缺省配置文件

21./etc/rsyslog.conf

日志设置文件(CentOS 6.x版本以上)

22./usr/local

该目录为用户自编译安装软件的存放目录,相当于windows下c:\program files

23./usr/src

内核源码的存放目录

24./var/log

各种系统日志的存放目录

25./var/log/messages

系统信息默认日志文件,按周自动轮循

26./var/log/secure

记录登入系统存取信息的文件,按周自动轮循,如pop3,ssh,telnet,ftp等都会记录再次。

26./var/log/wtmp

记录登录者信息的文件

27./var/spool

打印队列和其他队列工作的目录.每个不同的spool/var/spool下有自己的子目录,如,用户的邮箱在/var/spool/mail 中。

28./proc

虚拟目录,是内存的映射,内核和进程的虚拟文件系统目录

/proc/version

存放内核版本

/proc/sys/kernel

系统内核功能

29./etc/rc.local

存放开机自启动内容的文件,一般针对通过源程序编译安装的软件(chkconfig管理yum/rpm包安装的服务)


发布了48 篇原创文章 · 获赞 65 · 访问量 7万+

Guess you like

Origin blog.csdn.net/xiaolong361/article/details/52318834