profile 和 bashrc的区别
来源:互联网 发布:淘宝网鼠标垫 编辑:程序博客网 时间:2024/05/17 09:05
/etc/profile,/etc/bashrc 是系统全局环境变量设定
~/.profile,~/.bashrc用户家目录下的私有环境变量设定
当登入系统时候获得一个shell进程时,其读取环境设定档有三步
1首先读入的是全局环境变量设定档/etc/profile,然后根据其内容读取额外的设定的文档,如
/etc/profile.d和/etc/inputrc
2然后根据不同使用者帐号,去其家目录读取~/.bash_profile,如果这读取不了就读取~/.bash_login,这个也读取不了才会读取
~/.profile,这三个文档设定基本上是一样的,读取有优先关系
3然后在根据用户帐号读取~/.bashrc
至于~/.profile与~/.bashrc的不区别
都具有个性化定制功能
~/.profile可以设定本用户专有的路径,环境变量,等,它只能登入的时候执行一次
~/.bashrc也是某用户专有设定文档,可以设定路径,命令别名,每次shell script的执行都会使用它一次
~/.profile,~/.bashrc用户家目录下的私有环境变量设定
当登入系统时候获得一个shell进程时,其读取环境设定档有三步
1首先读入的是全局环境变量设定档/etc/profile,然后根据其内容读取额外的设定的文档,如
/etc/profile.d和/etc/inputrc
2然后根据不同使用者帐号,去其家目录读取~/.bash_profile,如果这读取不了就读取~/.bash_login,这个也读取不了才会读取
~/.profile,这三个文档设定基本上是一样的,读取有优先关系
3然后在根据用户帐号读取~/.bashrc
至于~/.profile与~/.bashrc的不区别
都具有个性化定制功能
~/.profile可以设定本用户专有的路径,环境变量,等,它只能登入的时候执行一次
~/.bashrc也是某用户专有设定文档,可以设定路径,命令别名,每次shell script的执行都会使用它一次
0 0
- profile 和 bashrc的区别
- bashrc和profile的区别
- bashrc 和 profile 的区别
- /etc/profile 和 /etc/bashrc的区别
- .profile,.login,.bash_profile和.bashrc的区别
- Linux中 .bashrc和profile的区别
- Linux中 .bashrc和profile的区别
- .bashrc .profile .bashprofile 的区别和联系
- .bash_profile、profile和.bashrc的区别
- Linux下profile和bashrc的区别
- linux-bashrc和profile的区别
- 【笔记】etc/profile和~/.bashrc的区别
- /etc/profile、/etc/bashrc、.bash_profile和.bashrc的区别
- .bash_profile 、.profile和 .bashrc 区别
- bashrc与profile的区别
- bashrc与profile的区别
- bashrc与profile的区别
- bashrc与profile的区别
- 飞凌OK335xS开发平台软件测试
- js中escape,encodeURI,encodeURIComponent三个函数的区别
- 关于回车和换行
- 拂去风尘,回家的风景最美
- JNI中javah命令的使用,生成.h的头文件
- profile 和 bashrc的区别
- Android关机流程源码分析
- webdriver热门博客
- Solutions: Using Mac OSX Terminal as an alternative to PuTTY
- 内存堆分配操作函数的使用(realloc,malloc等)
- 构建自己的Android代码托管服务器
- C指针原理(71)-C快速入门(5)
- UML图——用例图
- UDID替代方案