阿里云登录root出现-bash4.2不显示路径问题,试了试网上很多方法。无效,最后查到一个原因,因为root目录缺少两个bash文件 cp /etc/skel/.bashrc /root/cp /etc/skel/.bash_profile /root 退出登录就可以了。