6./etc/fstab //配置开机设备自动挂载文件
7./etc/rc.local //存放开机自启动程序命令的文件(命令大礼包,脚本)
在centos下使用需要注意需要执行chmod + x /etc/rc.d/rc.local/
3.变量
[root@lsr7 ~]# huahua=我是小仙女
[root@lsr7 ~]# echo $huahua
我是小仙女
4.[root@lsr7 ~]# env //查看环境变量
5.[root@lsr7 ~]# alias //查看系统里面的别名
alias cp='cp -i'
alias egrep='egrep --color=auto'
alias fgrep='fgrep --color=auto'
alias grep='grep --color=auto'
alias l.='ls -d .* --color=auto'
alias ll='ls -l --color=auto'
alias ls='ls --color=auto'
alias mv='mv -i'
alias rm='rm -i'
alias which='alias | /usr/bin/which --tty-only --read-alias --show-dot --show-tilde'
7./etc/profile //配置环境变量,别名
8./etc/bashrc //别名
9.[root@lsr7 ~]# vi /etc/motd //用户登录系统开机后显示这个文件内容
[root@lsr7 ~]# cat /etc/motd
#######
huahua
#######
xshell断开重启,就可以看到刚刚编辑的内容
10.[root@lsr7 ~]# cat /etc/issue //查看版本系统
\S
Kernel \r on an \m
[root@lsr7 ~]# echo huahua > /etc/issue //为了安全用huahua替代原来系统内容
[root@lsr7 ~]# cat /etc/issue
huahua
[root@lsr7 ~]# > /etc/issue //清除系统版本内容
[root@lsr7 ~]# cat /etc/issue
10./usr/local/ //存放编译安装软件
11./var/log //存放日志
12./var/log/messages //记录系统默认日志(messages信息)
13./var/log/secure //记录用户登录情况(secure安全)
faild password //密码错误