美文网首页
bash环境配置文件

bash环境配置文件

作者: njlkj | 来源:发表于2016-12-19 19:56 被阅读0次
longin shell

输入用户名密码取得的bash

nologin shell

bash的子进程

./etc/profile

整个系统的环境变量,login shell 一定会读

~/.bash_profile 或者 ~/.bash_login 或者 ~/.profile

用户的配置文件,读取顺序为
~/.bash_profile
/.bash_login(/.bash_profile 不存在才去读)
/.profile(/.bash_profile 和~/.bash_login 都不存在才去读)

source 或 小数点(.)

读入环境配置文件的命令
当修改了~/.bash_profile ,执行 source ~/.bash_profile ,不需要退出重新登录即可生效

~/.bash_history

记录历史命令

~/.bash_logout

登出的时候会读

相关文章

网友评论

      本文标题:bash环境配置文件

      本文链接:https://www.haomeiwen.com/subject/wnwtvttx.html