我将在我的计算机上设置mySQl的路径(我正在运行Snow Leopard)但我在网上看到了不同的说明 .
有人说要更改.profile文件,有人说更改.bash_profile文件 . 有什么不同?
.profile 适用于 sh 或 bash . 但是 .bash_profile 是特定于bash的,如果存在,将覆盖 .profile .
.profile
sh
bash
.bash_profile
我相信mac OS X环境按此顺序检查 .bash_profile , .bash_login , .profile . 它将运行层次结构中最高的那个,因此,如果你有 .bash_profile ,它将不会检查 .profile .
.bash_login
2 回答
.profile
适用于sh
或bash
. 但是.bash_profile
是特定于bash的,如果存在,将覆盖.profile
.我相信mac OS X环境按此顺序检查
.bash_profile
,.bash_login
,.profile
. 它将运行层次结构中最高的那个,因此,如果你有.bash_profile
,它将不会检查.profile
.