CentOS7 命令行变成-bash-4.2$

  • Post author:
  • Post category:其他



操作系统: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


关闭菜单