1.#PATH=$PATH:/home/user/Tool/gcc/bin
everytime logout PATH will recover
2.#vi /etc/profile
add PATH=$PATH:/home/user/Tool/gcc/bin
The best way change PATH,will never change except change the profile
3.#vi ~/.bash_profile
change PATH add :/home/user/Tool/gcc/bin
just for the one user
本文介绍了三种设置GCC路径的方法:每次注销后恢复路径;修改/etc/profile文件实现持久化配置;仅针对单个用户修改~/.bash_profile文件。
2558

被折叠的 条评论
为什么被折叠?



