gzpk

linux用户环境变量

~/.bash_profile  用于设置用户专属的环境信息,login方式进去bash运行,每次用户登录的时候执行一次,通常会调用bash_profile

~/.bashrc 用于设置当前shell 的环境信息,no login方式进入bash运行,shell新起的时候执行

对于用户专属的环境变量只需在~/.bash_profile中设置

若添加后没重新登录,只需source ~/.bash_profile

posted on 2013-12-11 14:54  gzpk  阅读(7202)  评论(0编辑  收藏  举报

导航