當前終端有效:
export PATH=/home/roger/shell:$PATH所有終端有效:
[root@rhel6 ~]# vim /etc/profile export PATH=/home/roger/shell:$PATH [root@rhel6 ~]# source /etc/profile當前用戶有效:
[root@rhel6 ~]# vim .bashrc export PATH=/home/roger/shell:$PATH [root@rhel6 ~]# source .bashrc本文出自 “10950988” 博客,請務必保留此出處http://10960988.blog.51cto.com/10950988/1791028