In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-21 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article introduces the relevant knowledge of "setting highlight color with man pages under Linux". In the operation of actual cases, many people will encounter such a dilemma, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!
Linux has a lot of very complex commands, but there are also some very simple but not very effective commands, but these small commands are not well known by most people, here, just let these tips add fun to the work of operation and maintenance, the default man pages has only one color, and some text is bold.
Just execute the following command.
The code is as follows:
Cat / etc/bashrc
Man () {
Env\
LESS_TERMCAP_mb=$ (printf "\ e [1x 31m")\
LESS_TERMCAP_md=$ (printf "\ e [1x 31m")\
LESS_TERMCAP_me=$ (printf "\ e [0m")\
LESS_TERMCAP_se=$ (printf "\ e [0m")\
LESS_TERMCAP_so=$ (printf "\ e [1th 44th 33m")\
LESS_TERMCAP_ue=$ (printf "\ e [0m")\
LESS_TERMCAP_us=$ (printf "\ e [1bot 32m")\
Man "$@"
}
EOF
. / etc/bashrc
The following is the effect of the end of the above code execution
This is the end of the content of "setting highlight color with man pages under Linux". Thank you for reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!
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.