~/.bash_profile是在Bash做为login shell(比如在tty登录)时运行的。
而做为非login shell(比如在x系统下用终端模拟器)时,Bash运行的是
~/.bashrc。

在 2008-08-27三的 10:05 +0800,Arthur Wong写道:
> 各位好!
> 
> 需要将一个新的path添加到$PATH之中,已经添加到 ~/.bash_profile 之中了,
> 然后执行"source ~/.bash_profile"使之生效,但好像每次机器重启后都得执行
> 一次,否则就找不到了,请问该如果使设置长期有效昵?
> 
> 系统:Debian Lenny
> 


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

回复