linux下环境变量的添加
2019-03-05 本文已影响0人
测试_机器猫
1、 永久添加环境变量(影响当前用户)
#vim ~/.bashrc
export PATH=/opt/STM/STLinux-2.3/devkit/sh4/bin:$PATH
2、永久添加环境变量(影响所有用户)
#vim /etc/profile
在文档最后,添加:
export PATH=/opt/STM/STLinux-2.3/devkit/sh4/bin:$PATH
保存,退出,然后运行:
#source /etc/profile
