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.
无限风暴 于 2007-09-02 12:39:31发表:
:0L :0L 老大你太厉害了,收获呀!
happywinner 于 2007-08-24 10:34:15发表:
两位都是牛人:ha3nd
219.143.136.* 于 2007-08-20 14:21:23发表:
还是第二位正确多了,楼主那么写把原来的path都丢了,多不爽
yorktown 于 2007-08-14 12:56:32发表:
两位都是牛人啊!
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 编辑 ]