CentOS7 命令行变成-bash-4.2$
生活随笔
收集整理的這篇文章主要介紹了
CentOS7 命令行变成-bash-4.2$
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
操作系統:CentOS7
問題:
Last login: Thu Sep? 6 08:05:34 2018 from 192.168.153.1
Could not chdir to home directory /home/sky9890: No such file or directory
-bash-4.2$?
原因:home目錄下丟失了文件。
解決方式:
#cd /etc/skel/
[root@localhost skel]#?cp .bash_logout /home/sky9890/
[root@localhost skel]#?cp? .bash_profile /home/sky9890/?
[root@localhost skel]#?cp? .bashrc? /home/sky9890/?
[root@localhost skel]# exit
[sky9890@localhost ~]$
轉載于:https://blog.51cto.com/sky9896/2170997
總結
以上是生活随笔為你收集整理的CentOS7 命令行变成-bash-4.2$的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 1112 Stucked Keyboar
- 下一篇: 新个税法通过,起征点每月5000元,一图