问题重现
[root@localhost ~]# su - yh -bash-4.1$ -bash-4.1$ -bash-4.1$ -bash-4.1$ -bash-4.1$ cd /home -bash-4.1$ ls
解决方法:家目录隐藏文件损坏 将/etc/skel 下的.bash*文件复制一份即可
-bash-4.1$ cp /etc/skel/.bash* ~ -bash-4.1$ logout #重新登陆即可 [root@localhost ~]# su - yh [root@yh ~]#