工作中,会经常遇到执行了脚本,但是,窗口一旦关了,在打开又不能使用了
一些配置文件(如.bashrc
、.bash_profile
、.profile)
等,需要使用命令来执行永久修改变量
命令:
source .bashrc
source .bash_profile
如果能成功运行
说明环境变量修改成功,可以永久使用
工作中,会经常遇到执行了脚本,但是,窗口一旦关了,在打开又不能使用了
一些配置文件(如.bashrc
、.bash_profile
、.profile)
等,需要使用命令来执行永久修改变量
命令:
source .bashrc
source .bash_profile
如果能成功运行
说明环境变量修改成功,可以永久使用