错误现象及原因 现象 原因 /root目录下缺少 .bash_profile 和 .bashrc 解决方案需要将/etc/skel/.bashrc和/etc/skel/.bash_profile下的这两个文件拷贝到/root/目录下 cp /etc/skel/.bashrc /root/ cp /etc/skel/.bash_profile /root/ 或 在xshell重新登录即可 来源:CSDN作者:柒夭夭链接:https://blog.csdn.net/weixin_41756573/article/details/104031633 标签 bash root linux系统 etc