1.1 临时设置
export PATH=/home/yan/share/usr/local/arm/3.4.1/bin:$PATH
1.2 当前用户的全局设置
打开~/.bashrc,添加行:
export PATH=/home/yan/share/usr/local/arm/3.4.1/bin:$PATH
使生效:
source .bashrc
1.3 所有用户的全局设置
$ vim /etc/profile
在里面加入
export PATH=/home/yan/share/usr/local/arm/3.4.1/bin:$PATH
使生效
source profile