周哥教IT.信息安全普法教育课
验证配置文件执行顺序
# 测试命令echo, 都写到文件的最后一行
[root@demo-c8 ~]# vim /etc/profile.d/test.sh
echo "/etc/profile.d/test.sh"
[root@demo-c8 ~]# vim /etc/bashrc
echo "/etc/bashrc"
[root@demo-c8 ~]# vim /etc/profile
echo "/etc/profile"
[root@demo-c8 ~]# vim ~/.bashrc
echo "~/.bashrc "
[root@demo-c8 ~]# vim ~/.bash_profile
echo "~/.bash_profile"