Invalid solution environment after ubuntu12.04. bashrc is set: After ubuntu server 12.04 is installed, 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 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.