红联Linux门户
Linux帮助

F8 有些命令不能用?

发布时间:2007-12-22 21:44:40来源:红联作者:freectn
例如man shutdown adsl-setup pppoe-setup等
提示是找不到文件。是因为刚装上未更新的原因吗?)3):o (5ty( (6)m:b :0wszxc
文章评论

共有 7 条评论

  1. 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 编辑 ]

  2. deepwhite 于 2007-12-24 09:18:15发表:

    http://www.linuxdiyf.com/bbs/viewthread.php?tid=71738&page=1#pid406756

    可以参考这里,

  3. deepwhite 于 2007-12-24 09:17:06发表:

    Sorry,昨天回帖回得匆忙,写错了。应该是 vi ~/.bash_profile.

  4. freectn 于 2007-12-23 20:45:35发表:

    [root@localhost freectn]#~/.bash_profile
    bash: /root/.bash_profile: 权限不够
    [root@localhost freectn]#

  5. deepwhite 于 2007-12-23 20:38:15发表:

    在终端里面输入: ~/.bash_profile
    然后在# User specific environment and startup programs后面添加
    PATH=$PATH:/sbin/
    PATH=$PATH:/usr/sbin/
    export PATH
    即可。

  6. freectn 于 2007-12-23 20:00:40发表:

    能说具体些吗?

  7. 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]