deepwhite 于 2007-12-24 09:41:17发表:
别那么麻烦了,只要在使用su变成超级用户以前,不要使用su命令,而使用su - ,注意“su”与“-”之间有一个空格,或者在使用su变成超级用户之后,再输入一下su -,切换一下路径即可。 看看这里,解释的比较详细。 http://hi.baidu.com/yangyingchao/blog/item/dfcabfb12000425009230249.html[ 本帖最后由 deepwhite 于 2007-12-24 10:04 编辑 ]
deepwhite 于 2007-12-24 09:18:15发表:
http://www.linuxdiyf.com/bbs/viewthread.php?tid=71738&page=1#pid406756 可以参考这里,
deepwhite 于 2007-12-24 09:17:06发表:
Sorry,昨天回帖回得匆忙,写错了。应该是 vi ~/.bash_profile.
freectn 于 2007-12-23 20:45:35发表:
[root@localhost freectn]#~/.bash_profile bash: /root/.bash_profile: 权限不够 [root@localhost freectn]#
deepwhite 于 2007-12-23 20:38:15发表:
在终端里面输入: ~/.bash_profile 然后在# User specific environment and startup programs后面添加 PATH=$PATH:/sbin/ PATH=$PATH:/usr/sbin/ export PATH 即可。
freectn 于 2007-12-23 20:00:40发表:
能说具体些吗?
deepwhite 于 2007-12-23 08:22:40发表:
修改~/.bash_profile,添加路径:如下: [code]# .bash_profile # Get the aliases and functions if [ -f ~/.bashrc ]; then . ~/.bashrc fi # User specific environment and startup programs PATH=$PATH:/sbin/ PATH=$PATH:/usr/sbin/ export PATH[/code]
deepwhite 于 2007-12-24 09:41:17发表:
别那么麻烦了,只要在使用su变成超级用户以前,不要使用su命令,而使用su - ,注意“su”与“-”之间有一个空格,或者在使用su变成超级用户之后,再输入一下su -,切换一下路径即可。
看看这里,解释的比较详细。
http://hi.baidu.com/yangyingchao/blog/item/dfcabfb12000425009230249.html
[ 本帖最后由 deepwhite 于 2007-12-24 10:04 编辑 ]
deepwhite 于 2007-12-24 09:18:15发表:
http://www.linuxdiyf.com/bbs/viewthread.php?tid=71738&page=1#pid406756
可以参考这里,
deepwhite 于 2007-12-24 09:17:06发表:
Sorry,昨天回帖回得匆忙,写错了。应该是 vi ~/.bash_profile.
freectn 于 2007-12-23 20:45:35发表:
[root@localhost freectn]#~/.bash_profile
bash: /root/.bash_profile: 权限不够
[root@localhost freectn]#
deepwhite 于 2007-12-23 20:38:15发表:
在终端里面输入: ~/.bash_profile
然后在# User specific environment and startup programs后面添加
PATH=$PATH:/sbin/
PATH=$PATH:/usr/sbin/
export PATH
即可。
freectn 于 2007-12-23 20:00:40发表:
能说具体些吗?
deepwhite 于 2007-12-23 08:22:40发表:
修改~/.bash_profile,添加路径:如下:
[code]# .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
# User specific environment and startup programs
PATH=$PATH:/sbin/
PATH=$PATH:/usr/sbin/
export PATH[/code]