In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly shows you the "linux how to set the font color in text mode", the content is easy to understand, clear, hope to help you solve your doubts, the following let the editor lead you to study and learn "how to set the font color in text mode in linux" this article.
The steps are as follows:
1. When logging in to the system using linux text mode, the interface is similar to the one shown below, with a black background and a white font.
2. After logging in to the system, users can use vim to open the .bashrc of the current home directory.
Vim / .bashrc
3. Then search PS1 through the search command of vim.
4. Press enter to locate the location shown in the following figure. The location pointed to by the red arrow in the following figure is the location to be modified.
5. Modify it to the following code
PS1='$ {debian_chroot:+ ($debian_chroot)}\ e [1bot 32it40m\] oyogo @\ h:\ w\ $'
Note:\ e [1 * * 32 * * 40m\] where 1 indicates highlighting, 32 indicates the font color is green, 40 indicates the background and the color is black. More colors can be found in the following table.
6. After the setting is completed, execute wq to save and exit vim.
7. Execute the following command to reload .bashrc
Source .bashrc
At this time, I can see that the font color has changed.
The above is all the content of the article "how to set the font color in text mode in linux". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.