/etc/profile /etc/bashrc ~/.bash_profile ~/.bashrc ~/.bash_logout 说明及区别
来源:互联网 发布:铁木辛柯 知乎 编辑:程序博客网 时间:2024/06/04 19:40
/etc/profile:此文件为系统的每个用户设置环境信息,当用户第一次登录时,该文件被执行.并从/etc/profile.d目录的配置文件中搜集shell的设置.
/etc/bashrc:为每一个运行bash shell的用户执行此文件.当bash shell被打开时,该文件被读取.
~/.bash_profile:每个用户都可使用该文件输入专用于自己使用的shell信息,当用户登录时,该
文件仅仅执行一次!默认情况下,他设置一些环境变量,执行用户的.bashrc文件.
~/.bashrc:该文件包含专用于你的bash shell的bash信息,当登录时以及每次打开新的shell时,该
该文件被读取.
~/.bash_logout:当每次退出系统(退出bash shell)时,执行该文件.
另外,/etc/profile中设定的变量(全局)的可以作用于任何用户,而~/.bashrc等中设定的变量(局部)只能继承/etc/profile中的变量,他们是"父子"关系.
~/.bash_profile 是交互式、login 方式进入 bash 运行的
~/.bashrc 是交互式 non-login 方式进入 bash 运行的
通常二者设置大致相同,所以通常前者会调用后者。
0 0
- /etc/profile /etc/bashrc ~/.bash_profile ~/.bashrc ~/.bash_logout 说明及区别
- /etc/profile,/etc/bashrc,~/.bash_profile,~/.bashrc,~/.bash_logout的区别
- /etc/profile、/etc/bashrc、~/.bash_profile、~/.bashrc和~/.bash_logout
- /etc/profile /etc/bashrc ~/.bash_profile ~/.bashrc 区别
- /etc/profile和/etc/bashrc和~/.bash_profile和~/.bashrc和~/.bash_logout的区别
- /etc/profile、/etc/bashrc、~/.bash_profile、~/.bashrc 的区别
- Linux下/etc/profile、/etc/bashrc、~/.bash_profile、~/.bashrc的区别
- /etc/profile、/etc/bashrc、.bash_profile和.bashrc的区别
- /etc/profile、/etc/bashrc、~/.bash_profile、~/.bashrc 四文件的区别
- /etc/profile、/etc/bashrc、~/.bash_profile、~/.bashrc
- /etc/profile、/etc/bashrc、~/.bash_profile、~/.bashrc
- /etc/profile、/etc/bashrc、~/.bash_profile、~/.bashrc 比较
- /etc/profile、/etc/bashrc、~/.bash_profile、~/.bashrc
- /etc/profile、/etc/bashrc、~/.bash_profile、~/.bashrc
- /etc/profile、/etc/bashrc、~/.bash_profile、~/.bashrc
- /etc/profile,/etc/bashrc,~/.bash_profile,~/.bashrc
- /etc/profile、/etc/bashrc、~/.bash_profile、~/.bashrc
- Linux /etc/profile,~/.bash_profile,~/.bashrc,/etc/bashrc
- j2ee项目中突然出现大批量的路径报错
- laravel对数据库的便捷操作
- 关于数字倒置的函数
- 运动目标检测 之 GMM背景模型算法
- spark for python : linux
- /etc/profile /etc/bashrc ~/.bash_profile ~/.bashrc ~/.bash_logout 说明及区别
- OpenCms多语言内容添加拷贝
- 随软键盘的弹起与隐藏,界面做合理的调整的一种实现(避免软键盘遮挡内容的显示)
- 科目二
- 自己动手,打造自己的事件总线
- 重定向和转发中的路径问题
- OpenCV3.0 Examples学习笔记(3)-cout_mat.cpp
- 时间格式化方法
- 常见问题集合