ajinn 发表于 2003-12-27 23:20:38

.bash_profile失效了,咋办

偶的.bash_profile原来设的export很管用,

可现在失效了,

每次登录后得重新export。

不知.bash_profile咋工作的,

藕节 发表于 2003-12-28 10:09:15

是不是有个.bashrc,你把配置加在这个里边看是否可行,或者/etc/profile

ajinn 发表于 2003-12-28 11:13:56

改/etc/profile是可以,不过偶想知道~/.bash_profile咋不工作啦 :oops:

藕节 发表于 2003-12-28 12:10:00

.bashrc
有没有这个文件,如果有,你改改这个文件试试
如果改这个行的话,说明由于这个文件的存在是.bash_profile失效

ilrainyday 发表于 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.

ilrainyday 发表于 2003-12-28 19:31:00

in short,/etc/profile and /etc/profile are world-wide, ~/.bash_profile and ~/.bashrc are personal-wide
页: [1]
查看完整版本: .bash_profile失效了,咋办