linux下查看和添加PATH环境变量

# vim /etc/profile

在文档最后,添加:

export PATH="/opt/STM/STLinux-2.3/devkit/sh4/bin:$PATH"

保存,退出,然后运行:

#source /etc/profile

不报错则成功。