红联Linux门户
Linux帮助

Fedora 7下不需要绝对路径执行命令

发布时间:2007-08-14 09:39:22来源:红联作者:mendation
在自己的用户目录下有一个隐藏文件.bashrc 修改该文件加入export PATH=".:/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bin"

这样就OK了!这个时候你可以试试ifconfig 命令了!

看看直接在#ifconfig是不是可以用了!呵呵!我就是在f7下使用的!
文章评论

共有 5 条评论

  1. 无限风暴 于 2007-09-02 12:39:31发表:

    :0L :0L 老大你太厉害了,收获呀!

  2. happywinner 于 2007-08-24 10:34:15发表:

    两位都是牛人:ha3nd

  3. 219.143.136.* 于 2007-08-20 14:21:23发表:

    还是第二位正确多了,楼主那么写把原来的path都丢了,多不爽

  4. yorktown 于 2007-08-14 12:56:32发表:

    两位都是牛人啊!

  5. forphd 于 2007-08-14 10:16:01发表:

    export PATH=$PARH:/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bin
    这样好些否?

    These commands can either be typed at the terminal each time you login, or you can add it to your .bashrc for bash shell or .cshrc for csh or tcsh so that each time you login, the PATH is already set. The $PATH means to keep the existing PATH and then append it with the other directories listed. This is helpful if a directory is set in the PATH by the System Administrator for everyone.

    加载在这个文件中,每次都会重复写入,不如加载在.bash_profile中,从shell启动

    [ 本帖最后由 forphd 于 2007-8-14 11:59 编辑 ]