How to get colors in man command page
This post was written by admin on December 26, 2009
Posted Under: General
Posted Under: General
We used to type man to find out forgotten parameter of special command.However,there’s only single color in the long output of man command and we need to take a hard look at on it.Here we can try to get colors in man page by edit .bashrc file.
Open .bashrc with your favourite editor:
gedit ~/.bashrc
add following into the end:
export LESS_TERMCAP_mb=$'\E[01;31m' export LESS_TERMCAP_md=$'\E[01;31m' export LESS_TERMCAP_me=$'\E[0m' export LESS_TERMCAP_se=$'\E[0m' export LESS_TERMCAP_so=$'\E[01;44;33m' export LESS_TERMCAP_ue=$'\E[0m' export LESS_TERMCAP_us=$'\E[01;32m'
Finally,use the command to apply this change:
source .bashrc
Now,try to man something!
Related posts:
- How to show date and time in your ubuntu bash history
- Boot into console/command line when startup Ubuntu 9.10
- How to install TeXLive 2010 on Ubuntu 10.10
- Instant LAN File Sharing with one command in Ubuntu
- feh – lightweight command-line (command console) image viewer for Linux

Reader Comments