Linux下profile、bashrc、bash_profile的区别
来源:互联网 发布:nginx http2 不用TLS 编辑:程序博客网 时间:2024/05/16 00:32
1. /etc/profile:此文件是为系统的每个用户设置环境配置信息,当用户第一次登录时,该文件被执行。并从/etc/profile.d目录的配置文件中搜集shell的配置。如果对此文件进行了修改,修改对所有用户都生效,要使修改生效只要source /etc/profile就行了。
2. /etc/bashrc:此文件是每个用户在打开shell时的配置,对所有用户生效,修改之后只要重新打开一个bash shell就行。
3. ~/.bash_profile:此文件是当前用户的shell信息,当用户登录时,该文件会被执行,但只会被执行一次,会调用~/.bashrc。修改后要进行source。
4. ~/.bashrc:此文件是当前用户在打开bash shell时的配置信息,只对当前用户生效,修改后重新打开bash shell即可生效。
~/.bash_profile是交互式,login式进入bash运行的。
~/.bashrc是交互式,no-login式进入bash运行的。二者大体相同,通常前者会调用后者。
阅读全文
0 0
- Linux下profile、bashrc、bash_profile的区别
- Linux下/etc/profile、/etc/bashrc、~/.bash_profile、~/.bashrc的区别
- [Linux] linux下 bashrc profile .bash_profile的区别
- Linux profile、bashrc、bash_profile的区别
- 浅析linux 下的/etc/profile、/etc/bashrc、~/.bash_profile、~/.bashrc
- linux 下/etc/profile、/etc/bashrc、~/.bash_profile、~/.bashrc 文件的区别
- Linux中profile、bashrc、~/.bash_profile、~/.bashrc、~/.bash_profile之间的区别和联系以及执行顺序
- Linux中profile、bashrc、~/.bash_profile、~/.bashrc、~/.bash_profile之间的区别和联系以及执行顺序
- Linux bash_profile和.bashrc以及profile的区别
- Linux中profile、bashrc、bash_profile之间的区别和联系
- Linux中profile、bashrc、bash_profile之间的区别和联系
- Linux中profile、bashrc、bash_profile之间的区别和联系 .
- Linux中profile、bashrc、bash_profile之间的区别和联系
- Linux中profile、bashrc、bash_profile之间的区别和联系
- Linux中profile、bashrc、bash_profile之间的区别和联系
- Linux中profile、bashrc、bash_profile之间的区别和联系
- Linux中profile、bashrc、bash_profile之间的区别和联系
- Linux中profile、bashrc、bash_profile之间的区别和联系
- 工程师离职后删雇主网站源代码被判刑五年,究竟是谁的错?
- (NLP)自然语言处理学习笔记1 NLTK在使用总结
- VS2008--VS2013 各种版本官方下载地址
- 编程生成错误提示:无法解析的外部函数
- 经验分享 |【PDF下载】双11技术峰会之双11媒体大屏背后的数据技术
- Linux下profile、bashrc、bash_profile的区别
- Centos7 yum安装MongoDB
- 邮件权限的开通以及java后台代码
- axios 全攻略之基本介绍与使用(GET 与 POST)
- ArrayList初见
- Linux-IIC驱动(2)-Linux下IIC子系统的介绍
- OpenGL学习:坐标变换(1)-模型变换(model transformation)
- Linux下Tomcat的搭建以及开机自启动设置
- 保护你的网站免受这七大常见黑客攻击