Ubuntu-11.10之八 profile与bashrc的分析
来源:互联网 发布:下载个淘宝网 编辑:程序博客网 时间:2024/05/21 00:00
在以后的开发中会设计到交叉编译器环境变量的设置,可以在以下几个文件中设置,所以这里简单分析下下面的几个文件。
etc/profile: 此文件为系统的每个用户设置环境信息,当用户第一次登录时,该文件被执行,
并从/etc/profile.d目录的配置文件中搜集shell的设置。
etc/bash.bashrc: 为每一个运行bash shell的用户执行此文件,当bash shell被打开时,该文件被读取。
~/.bashrc: 该文件包含专用于你的bash shell的bash信息,当登录时以及每次打开新的shell时,该文件被读取。
~/.bash_logout: 当每次退出系统(退出bash shell)时,执行该文件。
另外,/etc/profile中设定的变量(全局)的可以作用于任何用户,而~/.bashrc等中设定的变量(局部)只能继承/etc/profile中的变量,他们是"父子"关系。
- Ubuntu-11.10之八 profile与bashrc的分析
- Ubuntu-关于bashrc与profile的区别
- profile与bashrc的深入分析
- profile与bashrc的深入分析
- profile与bashrc的深入分析
- Ubuntu不同目录下profile与bashrc的区别
- Ubuntu不同目录下profile与bashrc的区别
- Ubuntu不同目录下profile与bashrc的区别
- Ubuntu不同目录下profile与bashrc的区别
- Ubuntu不同目录下profile与bashrc的区别
- bashrc与profile的区别
- bashrc与profile的区别
- bashrc与profile的区别
- bashrc与profile的区别
- bashrc与profile的区别
- bashrc与profile的区别
- bashrc与profile的区别
- bashrc与profile的区别
- 应用C++成员指针需要遵守的两个规则
- 使用数据库连接池优化程序性能
- 算法导论——第二章——堆排序
- Qt写的行数统计工具[更新Dll]
- 使用数据库连接池优化程序性能
- Ubuntu-11.10之八 profile与bashrc的分析
- 算法导论——第三章——优先级队列(以堆为思想)
- ofstream建立文件问题
- 算法导论——第四章——快速排序
- HTML Script
- 处理new分配失败
- How to tile a background image in Android
- stm32学习经验
- 快速比较两字符串最大相同算法