第二个用户帐户的终端是空白的

这是一个奇怪的问题:在移动/ home到新磁盘后,我的gnome终端不执行任何命令。 它只是空白:它不包含通常的

name@computer:~# 

我可以在其中输入文字但没有执行任何内容。 我在我刚创建的主用户帐户或新用户帐户上没有此问题。

我还安装并测试了其他的consols,但他们遇到了同样的问题。

可能有什么问题,我该如何解决?

当一些shell初始化文件 (如.bashrc.profile.bash_logout )是隐藏文件丢失,空或损坏时,可能会发生此问题。 要解决此问题,请从主用户帐户以超级用户身份从终端运行以下命令:

 # copy .bashrc .profile, .bash_logout files from /etc/skel to the new home directory of user2 sudo cp /etc/skel/.bashrc /etc/skel/.profile /etc/skel/.bash_logout /home/user2 # be sure that user2 is the owner of the previous copied files sudo chown user2:user2 /home/user2/.bashrc /home/user2/.profile /home/user2/.bash_logout