在~/.bashrc文件里写上source /etc/profile: 输入指令:[ryan@localhost ~]$ vim .bashrc输入a开始编辑,加入如下内容: ESC 退出,输入指令:wq, 写入并退出.