Very depressed, do not know what the reason, on the virtual machine to get that, the Centos6.5 seems to make a problem, the use of SSH remote landing on the CentOS, only show:bash-4.1#, very strange, whoami the root permissions displayed, PWD display /root plus the # prompt, it does indicate that this is the root user, but not the same as when we landed. Can be sure is the root of the user's configuration file error, or mistakenly deleted, because the day before yesterday I have been following the tutorial to knock command, it may be the cause of the problem.
The steps are as follows:
Vim ~/.bash_profile
(. Bash_profile does not exist can create a new one or you can)
At the end add
Export ps1= ' [\[email protected]\h \w]\$ '
And then execute
SOURCE ~/.bash_profile
So the shell can show the previous situation.
The solution of the shell display-bash-4.1# under Linux