打开 gedit /root/.bashrc ,在文件的末尾添加: source /etc/profile 然后执行更新:source /root/.bashrc 转载于:https://www.cnblogs.com/zhaoxueru/p/11311764.html