配置服务器时不知道做了什么操作,突然命令行提示-bash-4.2#而不是用户名+文件夹名字的格式显示了。解决方法:cp /etc/skel/.bashrc和/etc/skel/.bash_profile到root目录下。