4

How to get colors in man command page

view full story
linux-howto

http://ubuntuguide.net – 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! Share Related posts: Instant LAN File Sharing with one command in Ubuntu How to show date and time in your ubuntu bash history Customize your own Gnome desktop colors with Gnome color chooser (HowTos)