avatar
偷偷地问个超低级问题# Unix - 噫吁兮,危乎高哉
t*h
1
sunOS 5.8, bash
每次输入命令都要加上全路径,比如
/usr/ccs/bin/make
/apps/gcc/bin/g++
实在是麻烦。有没有办法解决?翻翻前面的帖子,
还是只有个模糊的映象。哪位帮帮忙?
avatar
X*r
2
加到环境变量PATH里

【在 t*h 的大作中提到】
: sunOS 5.8, bash
: 每次输入命令都要加上全路径,比如
: /usr/ccs/bin/make
: /apps/gcc/bin/g++
: 实在是麻烦。有没有办法解决?翻翻前面的帖子,
: 还是只有个模糊的映象。哪位帮帮忙?

avatar
t*h
3
how? can you give me some details? thx.

【在 X****r 的大作中提到】
: 加到环境变量PATH里
avatar
m*i
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.
avatar
t*h
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.

avatar
t*h
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.

相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。