Linux系统中 bashrc 和 profile 的区别
来源:互联网 发布:gta5帧数怎么优化 编辑:程序博客网 时间:2024/05/17 22:32
(1)/etc/profile: 此文件为系统的每个用户设置环境信息,当用户第一次登录时,该文件被执行. 并从/etc/profile.d目录的配置文件中搜集shell的设置。
(2)/etc/bashrc: 为每一个运行bash shell的用户执行此文件.当bash shell被打开时,该文件被读取。(些linux版本中的/etc目录下已经没有了bashrc文件)
(3)~/.bash_profile: 每个用户都可使用该文件输入专用于自己使用的shell信息,当用户登录时,该文件仅仅执行一次!默认情况下,他设置一些环境变量,执行用户的.bashrc文件。
(4)~/.bashrc: 该文件包含专用于你的bash shell的bash信息,当登录时以及每次打开新的shell时,该该文件被读取。
(5)~/.bash_logout:当每次退出系统(退出bash shell)时,执行该文件.
另外,/etc/profile中设定的变量(全局)的可以作用于任何用户,而~/.bashrc等中设定的变量(局部)只能继承
/etc/profile中的变量,他们是"父子"关系。
(6)~/.bash_profile 是交互式、login 方式进入 bash 运行的~/.bashrc 是交互式 non-login 方式进入 bash 运行的通常二者设置大致相同,所以通常前者会调用后者。
- Linux系统中 bashrc 和 profile 的区别
- Linux中 .bashrc和profile的区别
- Linux中 .bashrc和profile的区别
- LInux中 ~/.profile ~/.bashrc /etc/profile /etc/bashrc 的区别
- 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之间的区别和联系
- 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之间的区别和联系
- NserviceBus翻译之FAQ:MsmqTransportConfig配置项
- UML关系(泛化,实现,依赖,关联(聚合,组合))
- UVa 573 The Snail(蜗牛)
- hdu 4681 String
- 多tomcat并行,用户名、密码及虚拟路径设置
- Linux系统中 bashrc 和 profile 的区别
- php缓存小技巧
- 使用Spring JavaMail发送邮件总结
- Hadoop中的fsimage和edits(能力工场--Hadoop)
- MFC实现数据库的基本操作
- poj-2479 简单DP
- JS面试题及答案
- Hello CSDN Blog!
- 两个View同步滚动