linux 命令终端显示-bash-4.2#解决方法
linux-dash
A beautiful web dashboard for Linux
项目地址:https://gitcode.com/gh_mirrors/li/linux-dash
![](https://devpress.csdnimg.cn/6deffb34f7114cc1a2e1e686a67e0027.png)
·
系统版本:centos7_1305版本系统
出现问题:命令行不显示原来的root@主机名+路径,变为显示bash-4.2了
问题分析:经过百度后确定是文件丢失,在家目录下ls -al 后发现无.bash_profile 和.bashrc文件(linux机制后续继续)
问题确定:经过以上排查,以及百度搜索,确定问题为sh_profile 和.bashrc文件的丢失导致
解决方案:复制/etc/skel/的这两个文件到家目录下,重启或注销后恢复正常
出现原因:通过同现场人员沟通,在出现问题前,服务器经常以外断电;
特记下,以备后日回顾。
![]( https://profile-avatar.csdnimg.cn/default.jpg)
![](https://devpress.csdnimg.cn/7174e1ca86c447029bb12f9ec0bd281c.png)
![](https://devpress.csdnimg.cn/096f7827187446559bd7b6030eb5db38.png)
![](https://devpress.csdnimg.cn/6deffb34f7114cc1a2e1e686a67e0027.png)
A beautiful web dashboard for Linux
最近提交(Master分支:5 个月前 )
186a802e
added ecosystem file for PM2 4 年前
5def40a3
Add host customization support for the NodeJS version 4 年前
更多推荐
所有评论(0)