t*h 发帖数: 148 | 1 sunOS 5.8, bash
每次输入命令都要加上全路径,比如
/usr/ccs/bin/make
/apps/gcc/bin/g++
实在是麻烦。有没有办法解决?翻翻前面的帖子,
还是只有个模糊的映象。哪位帮帮忙? |
X****r 发帖数: 3557 | 2 加到环境变量PATH里
【在 t*h 的大作中提到】 : sunOS 5.8, bash : 每次输入命令都要加上全路径,比如 : /usr/ccs/bin/make : /apps/gcc/bin/g++ : 实在是麻烦。有没有办法解决?翻翻前面的帖子, : 还是只有个模糊的映象。哪位帮帮忙?
|
t*h 发帖数: 148 | 3 how? can you give me some details? thx.
【在 X****r 的大作中提到】 : 加到环境变量PATH里
|
m**i 发帖数: 724 | 4 PATH=$PATH;/usr/ccs/bin/make
export PATH
? this is for bash
google ba.
【在 t*h 的大作中提到】 : how? can you give me some details? thx.
|
t*h 发帖数: 148 | 5 I have tried this.
export PATH=$PATH:/usr/ccs/bin:/apps/gcc/bin
it works for bash
But every time I restart the computer,
the ENV is the same as before.
【在 m**i 的大作中提到】 : PATH=$PATH;/usr/ccs/bin/make : export PATH : ? this is for bash : google ba.
|
t*h 发帖数: 148 | 6 add it to ~/.profile
I do not have it, so I create one.
It works.
Thanks all.
【在 t*h 的大作中提到】 : I have tried this. : export PATH=$PATH:/usr/ccs/bin:/apps/gcc/bin : it works for bash : But every time I restart the computer, : the ENV is the same as before.
|