使 .bash_profile 文件中环境变量马上生效的命令
2012-09-21 11:01
363 查看
使 .bash_profile 文件中环境变量马上生效的命令
在 Linux 管理中,常有需要修改根目录下 .bash_profile 文件,更改环境变量的情况,文件修改后,一般的做法是重新登录,或者重新启动机器,不知道大家是怎么做的,反正我以前是用前面的两个办法中的一个,感觉很不方便。现在发现了一个命令:在 Linux 管理中,常有需要修改根目录下 .bash_profile 文件,更改环境变量的情况,文件修改后,一般的做法是重新登录,或者重新启动机器,不知道大家是怎么做的,反正我以前是用前面的两个办法中的一个,感觉很不方便。现在发现了一个命令: source .bash_profile 在修改好 .bash_profile 文件后,直接运行这个命令,就可以直接让环境变量的修改生效了。
相关文章推荐
- 使 .bash_profile 文件中环境变量马上生效的命令
- 使 .bash_profile 文件中环境变量马上生效的命令
- 使 .bash_profile 文件中环境变量马上生效的命令
- 使 .bash_profile 文件中环境变量马上生效
- Linux下修改.bash_profile文件后再次用CRT启动环境变量未生效的解决方法,oracle命令无法使用
- linux的export命令和profile,.bashrc,bash.profile各种环境变量文件
- linux的export命令和profile,.bashrc,bash.profile各种环境变量文件
- linux环境变量设置 以及 source命令 Linux 之 /etc/profile、~/.bash_profile 等几个文件的执行过程 Linux 设置环境变量
- linux中export、ofile、bashrc、bash_profile各种环境变量文件
- mac pro 环境变量的配置 (当不存在 .bash_profile 文件的时候)
- Mac 每次都要执行source ~/.bash_profile 配置的环境变量才生效
- Linux中环境变量文件profile、bashrc、bash_profile之间的区别和联系
- Linux中环境变量文件profile、bashrc、bash_profile之间的区别和联系
- /etc/profile,/etc/environment,.bash_profile及.bashrc等与环境变量有关的文件的比较
- linux添加环境变量对/etc/profile文件进行修改过后导致命令用不了
- linux添加环境变量对/etc/profile文件进行修改过后导致命令用不了
- mac pro 环境变量的配置 (当不存在 .bash_profile 文件的时候)
- ls command not found vi command not found 只要的原因是因为环境变量的问题,编辑profile文件没有写正确,导致在命令行下 ls等命令不能够识别。 解决办法:
- bash配置文件/etc/profile,/etc/bashrc,~/.bash_profile,~/.bashrc详解及修改PATH环境变量
- mac pro 环境变量的配置 (当不存在 .bash_profile 文件的时候)