In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly explains "how to remotely log in to Ubuntu to change the terminal folder display color", the content of the article is simple and clear, easy to learn and understand, the following please follow the editor's ideas slowly in depth, together to study and learn "how to remotely log in to Ubuntu to change the terminal folder display color" bar!
Using Putty to remotely log in to the Ubuntu system, the folder in the terminal is dark blue by default, coupled with a black background, you can't see the folder name displayed in blue characters at all. You can change the display color of folders by setting the color-related environment variable LS_COLORS.
Display color settings in Terminal
1. The default dark blue display of the terminal folder is really uncomfortable.
2. Use the command $echo $LS_COLORS to view the default value of the environment variable LS_COLORS, where the folder color represents "di=01;34"
3. Color value setting field description: entry = display effect code; foreground color code; background color code
Entry: di = directory,fi = file,ln = symbolic link,pi = fifo file,so = socket file,bd = block file,cd = character file,ex = executable file
Display effect code: 0-- OFF,1-- highlight, 4-- underline,5-- flicker, 7-- contrast
Color code:
Foreground color background color
30 40 black
31 41 Red
32 42 Green
33 43 yellow
34 44 Blue
35 45 purplish red
36 46 turquoise
37 47 White
If the folder display color is changed, for example, the foreground color is changed to cyan: $export LS_COLORS=$ {LS_COLORS} 'di=01;36':
The display effect is as follows:
4. Export declares that the changed environment variable value is only applicable to the session here. If you want to display the desired color effect every time you log in, you can write "export LS_COLORS=$ {LS_COLORS} 'di=01;94':" (folder light blue) to the ~ / .bashrc configuration file.
Display color settings in the Vim editor
1. Display color setting parameters in ": hi" in command mode in Vim
2. Field description: project color effect cterm= font effect (bold- bold, underline- underline) ctermfg= foreground color ctermbg= background color gui=gui mode color (for gvim) color foreground color foreground color guibg=gui mode color background color
3. You can temporarily change the color display effect of the corresponding entry through the highlight command ": hi entry term=XX cterm=XX ctermfg=XX ctermbg=XX" in command mode.
4. To make the color configuration take effect permanently, you need to modify the color-related parts of the vim configuration file. First, take a look at the vim running environment ": echo $VIMRUNTIME". The current running environment is / usr/share/vim/vim74.
5. There are configuration files with different color themes in the "/ usr/share/vim/vim74/colors/" directory (the file name is the theme name), and you can modify the configuration files of the corresponding themes.
6. Use the ": colorscheme" command to view the current theme, and the current color theme is ron. To modify the color theme, also use the colorscheme command plus the theme name, eg: ": colorscheme shine"; if you want to have a permanent effect, write the configuration command to the "/ etc/vim/vimrc" theme.
Thank you for your reading, the above is the content of "how to remotely log in to Ubuntu to change the terminal folder display color". After the study of this article, I believe you have a deeper understanding of how to remotely log in to Ubuntu to change the terminal folder display color. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!
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.