QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 692|回复: 5

.bash_profile失效了,咋办

[复制链接]
发表于 2003-12-27 23:20:38 | 显示全部楼层 |阅读模式
偶的.bash_profile原来设的export很管用,

可现在失效了,

每次登录后得重新export。

不知.bash_profile咋工作的,
发表于 2003-12-28 10:09:15 | 显示全部楼层
是不是有个.bashrc,你把配置加在这个里边看是否可行,或者/etc/profile
回复

使用道具 举报

 楼主| 发表于 2003-12-28 11:13:56 | 显示全部楼层
改/etc/profile是可以,不过偶想知道~/.bash_profile咋不工作啦
回复

使用道具 举报

发表于 2003-12-28 12:10:00 | 显示全部楼层
.bashrc
有没有这个文件,如果有,你改改这个文件试试
如果改这个行的话,说明由于这个文件的存在是.bash_profile失效
回复

使用道具 举报

发表于 2003-12-28 19:25:39 | 显示全部楼层
well, ~/.bash_profile is read and the command in it executed by bash everytime you login to the system,in other words,is read and executed by the login shell. ~/.bashrc is read and executed by the subshell.
回复

使用道具 举报

发表于 2003-12-28 19:31:00 | 显示全部楼层
in short,/etc/profile and /etc/profile are world-wide, ~/.bash_profile and ~/.bashrc are personal-wide
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-9-20 12:08 , Processed in 0.046716 second(s), 16 queries .

© 2021 Powered by Discuz! X3.5.

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