bashrc和profile的区别
2016-06-13 10:22
369 查看
/etc/profile是全局的,是私有的
<span style="background-color: rgb(255, 255, 255);"><span style="font-size:18px;">/etc/profile用于整个系统所有用户, ~/.bash_profile, ~/.profile和~/.bashrc 用于各个用户,这里的"~"符号就是各当前用户的$HOME ~/.bash_profile 和 ~/.profile 只在登陆时读取一次。 ~/.bashrc 每次都读取 ~/.bash_profile 和 ~/.profile 的区别在于,bash 只读取~/.bash_profile;而对于 ~/.profile 来说,不光bash, 其他shell 也读 ~/.profile </span></span>
相关文章推荐
- 远程执行shellcode
- Shell命令
- 使用shell实现对xml文件的指定字段进行修改,默认替换成当时的时间戳
- [Android]使用BeanShell实现Android简易科学计算器
- HBase 常见Shell命令总结
- shell变量的简单说明
- 浅谈shell—eval
- shell 基础 $(cd `dirname $0`;pwd)
- shell 脚本
- shell实现ftp命令示例
- Shell 字符串、数字、文件判断
- Xshell无法连接Ubuntu,但能够ping通虚拟机
- shell基础
- Shell命令速查
- Shell中命令替换$(...)与后置引用`...`的区别与联系
- Linux Shell系列教程之(九)Shell判断 if else 用法
- Powershell学习之道-文件夹共享及磁盘映射
- shell脚本摘要
- mac环境变量设置
- Shell特殊变量:Shell $0, $#, $*, $@, $?, $$和命令行参数