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 ~]$


發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章