Linux 常用配置文件

一、基础

文件用途
/etc/passwd系统用户信息
/etc/group系统组信息
/etc/sysconfig/network主机名
/etc/yum.repos.d/*yum源配置文件
/etc/sudoerssudo配置文件

二、系统

文件用途
/etc/profile全局环境变量,每个用户登录后都会加载这个文件
/etc/bashrc当bash shell被打开时,该文件被读取
/etc/rc.local操作系统开机最后读取的一个文件
注意:CentOS7 需要 chmod +x /etc/rc.d/rc.local才会生效

三、网络

文件用途
/etc/sysconfig/network-scripts/*网卡配置
/etc/resolv.confDNS信息
Last modification:June 4th, 2019 at 10:51 pm