关于CentOS的etcprofile和~.bash_profile及.zshrc - ma_fighting

关于CentOS的etcprofile和~.bash_profile及.zshrc - ma_fighting,第1张

关于CentOS的/etc/profile和~/.bash_profile及.zshrc - ma_fighting 下面由centos使用教程栏目给大家介绍CentOS的/etc/profile和~/.bash_profile及.zshrc - ma_fighting,希望对需要的朋友有所帮助!

交互式登陆shell

对于交互式的登陆shell而言,CentOS规定了startup文件的加载顺序如下:

登陆过程:
1. 读取并执行/etc/profile文件;
2. 读取并执行~/.bash_profile文件;
- 若文件不存在,则读取并执行~/.bash_login文件;
- 若文件不存在,则读取并执行~/.profile文件;

登出过程:
1. 读取并执行~/.bash_logout文件;
2. 读取并执行/etc/bash.bash_logout文件;

.zshrc source后只会在当前窗口生效

更多centos技术文章,请访问centos入门教程栏目!

以上就是关于CentOS的/etc/profile和~/.bash_profile及.zshrc - ma_fighting的详细内容,

欢迎分享,转载请注明来源:内存溢出

原文地址:https://54852.com/yw/710710.html

(0)
打赏 微信扫一扫微信扫一扫 支付宝扫一扫支付宝扫一扫
上一篇 2022-04-24
下一篇2022-04-24

发表评论

登录后才能评论

评论列表(0条)

    保存