linux系统重要子目录介绍
昨天介绍了系统根目录下的结构与一级目录的作用,今天来看一看系统一些重要的需要去了解的目录
1、/etc/sysconfig/network-scripts/ifcfg-ehth0
网卡的配置文件

同样也可以通过命令**setup **来执行修改网卡参数

2、/etc/resolv.conf 设置本地DNS的文件

3、/etc/hosts 用户IP与名称(域名)的对应解析的配置文件
在实际的生产环境中很实用的,主要用于服务器迁移


4、/etc/sysconfig/network 修改机器名及网卡启动、网关配置文件


7、/etc/init.d 安装的软件启动服务(系统的启动服务)所在目录
8、/etc/profile 系统全局环境变量的配置文件
9、/etc/issue显示用户登陆前的信息
10、**/etc/motd 用户登陆提示信息**

我们编辑配置文件写入提示文本后保存退出,再重新登陆系统就可以提示信息

11、/etc/group用户的组名与相关信息
12、**/etc/passwd系统所有用户账号信息文件**
13、/etc/shadow系统所有用户密码信息文件
14、/var/log/secure 登陆系统存取信息文件(系统安全日志文件)
15、/var/spool/cron/定时任务配置文件


系统所有的定时任务都存放此目录下面
