Invalid solution after ubuntu12.04.bashrc is set

Source: Internet
Author: User
Invalid solution environment after ubuntu12.04.bashrc is set: ubuntuserver12.04 after loading, it seems to be copied from another host ~ /. Bashrc file, but it is useless. The file has no color, and some ll and other commands cannot be found, but these are all in. bashrc... ubuntu12.04. the solution is invalid after bashrc is set: After ubuntu server 12.04 is installed, it looks like it was copied from another host ~ /. Bashrc file, but it is useless. The file has no color, and some ll and other commands cannot be found, but these are all set in. bashrc and checked, run the command: source ~ /. Bashrc does, but it is a remote ssh connection. it will not work if you exit ssh. After restarting the instance, you can run the following command to create a file ~ /. Bash_profile content: if [-f ~ /. Bashrc]; then .~ /. Bashrcfi pay attention to the format. it was not possible to copy it online at first. later I saw a discussion about changing the color and found that the format was incorrect. OK. Now you can check the system and find that the original Ubuntu is similar ~ /. The file used by bash_profile. the file name is ~ /. Profile. I copied the file from another host and restarted it. I guess I deleted the file by mistake or forgot to copy it. I found such a sentence on the Internet to explain my problems :~ /. Bash_profile: each user can use this file to input the shell Information dedicated to their own use. when a user logs on, this file is only executed once! By default, it sets some environment variables to execute the user's. bashrc file. note :~ In LINUX, the variable HOME is represented. In addition, in different LINUX operating systems, this file may be different ~ /. Bash_profile ;~ /. Bash_login or ~ /. One or more of the profiles. if there are several, the execution sequence is :~ /. Bash_profile ,~ /. Bash_login ,~ /. Profile. Tears ran, looking for a long time, because the search keyword is not found until now, finally completed.
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.