LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 2465|回复: 4

请教:如何使.bash_profile立即生效?[已解决]

[复制链接]
发表于 2004-1-29 14:05:51 | 显示全部楼层 |阅读模式
修改.bash_profile,建立了新的环境变量,每次都要注销--〉重新登陆之后才能使新建的环境变量生效吗?有人说直接运行./.bash_profile就行了,我试过了,还是不行。请指教。
发表于 2004-1-29 14:28:33 | 显示全部楼层
. .bash_profile
发表于 2004-1-29 14:53:06 | 显示全部楼层
也可:
source .bash_profile
 楼主| 发表于 2004-1-29 15:44:22 | 显示全部楼层
thanks very much
发表于 2004-2-3 20:59:55 | 显示全部楼层
run another bash instance to replace your current running one

  1. exec bash --login
复制代码

logging out and logging in again is doing the same thing as this command.
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表