Linux chang system PATH

来源:互联网 发布:汉口招聘淘宝客服 编辑:程序博客网 时间:2024/05/02 19:53

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

原创粉丝点击