发现居然PATH=$PATH:/XXX放在.bash_profile里没用,只有放在.bashrc里才有用,而且
要重新打开下终端或者bash下。。。好奇怪
另外bash,csh,tcsh啥关系?我在bash下运行下csh好像提示就成%了,不过前面没了
目录提示,还有setenv好像只有csh才能用?这几个shell怎么切换啊?
ubuntu下的环境变量怎么设?
版面规则
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
-
- 帖子: 14
- 注册时间: 2006-11-17 1:35
-
- 帖子: 10
- 注册时间: 2006-10-23 14:36
- patrickhe
- 帖子: 681
- 注册时间: 2005-07-21 19:13
- 来自: Peking, China
- 联系:
-
- 帖子: 14
- 注册时间: 2006-11-17 1:35
# ~/.bash_profile: executed by bash(1) for login shells.
# see /usr/share/doc/bash/examples/startup-files for examples.
# the files are located in the bash-doc package.
# the default umask is set in /etc/login.defs
#umask 022
PATH=$PATH:~/Taurus_TCAD/2005.10/license
# include .bashrc if it exists
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
# set PATH so it includes user's private bin if it exists
if [ -d ~/bin ] ; then
PATH=~/bin:"${PATH}"
fi
#PATH=~/Taurus_TCAD/2005.10/bin:"${PATH}"
以上是我的.bash_profile的内容,我在.bashrc里面加的也就是PATH=$PATH:~/Taurus_TCAD/2005.10/license
请问每次login是指注销gnome后再登陆还是重新打开一个terminal呢?
我去找找有关bash,csh,tcsh的资料再学学。。。多谢
# see /usr/share/doc/bash/examples/startup-files for examples.
# the files are located in the bash-doc package.
# the default umask is set in /etc/login.defs
#umask 022
PATH=$PATH:~/Taurus_TCAD/2005.10/license
# include .bashrc if it exists
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
# set PATH so it includes user's private bin if it exists
if [ -d ~/bin ] ; then
PATH=~/bin:"${PATH}"
fi
#PATH=~/Taurus_TCAD/2005.10/bin:"${PATH}"
以上是我的.bash_profile的内容,我在.bashrc里面加的也就是PATH=$PATH:~/Taurus_TCAD/2005.10/license
请问每次login是指注销gnome后再登陆还是重新打开一个terminal呢?
我去找找有关bash,csh,tcsh的资料再学学。。。多谢
- SuperWar3Fan
- 帖子: 1263
- 注册时间: 2006-05-20 6:25
- 来自: 山东淄博
- 联系:
-
- 帖子: 10
- 注册时间: 2006-10-23 14:36