The solution of the shell display-bash-4.1# under Linux

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.