Ubuntu Zero-Basic Teaching-What should I do if there is no color on the Ubuntu20.04 terminal? I am waiting online!

Environment: Ubuntu20.04
Problem description: Open the terminal, whatever command you want, all the commands are displayed in black (default)
The cause of the problem: The .bashrc file is missing in the home directory of the system or the file is not working properly.


1. First of all, su-to the newly created user, I have no color directly on the root user, so there is no need to switch.

su root

2. Copy the default .bashrc

cp /etc/skel/.bashrc ~/

3. Then create a .profile file and modify it directly if it exists;

vi ~/.profile

Then paste the following content:

if [ "$BASH" ]; then  if [ -f ~/.bashrc ]; then    . ~/.bashrc  fifi mesg n

4. To take effect immediately, execute the following command;

 source ~/.profile

No, the colors won’t come out

5. So far, the above is the solution to the no color of the Ubuntu terminal;

If you think this article is helpful to you, please don't forget to pia it directly in the lower left corner of the article to light it up! ! ! If it's me, don't hesitate to go directly to my favorites and go ashamed! No matter what you need or not in the future, eat the ashes first, hahahahahaha~~

​​If you have friends who are interested in Ubuntu-related articles written by bug bacteria, please subscribe to the column " Ubuntu Zero Basic Teaching " of bug bacteria , and teach you how to eat Ubuntu thoroughly! I use my hands to achieve your dreams. ​

❤If the article is helpful to you, please light up your thumb in the lower left corner at the end of the article! (#^.^#);
❤If you like the articles shared by bug bacteria, please pay attention to bug bacteria! (๑′ᴗ‵๑)づ╭❤~;
❤If you have any questions about the article, please leave a message below or join the group to discuss [group number: 708072830];
❤In view of the limited personal experience, all opinions and technical research points, if you have any objections, please reply directly to participate in the discussion (please do not make offensive remarks, thank you);
❤Copyright statement: This article is the original article of the blogger. Please attach the link to the original source and the statement of this article for reprinting. All rights reserved, piracy must be investigated! (*^▽^*).