Web Design

Categorized | cli, System

Tags :

Color man pages in Linux

If you had enough of the default look of your man pages, set less as your default man page reader and insert these lines in your ~/.bashrc file:

export LESS_TERMCAP_mb=$’\E[01;31m’
export LESS_TERMCAP_md=$’\E[01;37m’
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’

Author Profile

T4L ;

Other posts by

Author's web site

Are you satisfied with this blog?
Why not subscribe our RSS Feed? you will always get the latest post.


  1. delvalle26

    Thank you for this snippet.

    I had a little trouble when pasting this into my ~/.bashrc
    The single quote should not be a right single quote.

    Specifically, change ’ to ‘

  2. delvalle26

    I apologize for the second post, but seeing mine awaiting moderation, it also ruined the single quote…

    For a tips site it would be nice to disable anything that changes characters in syntax…


2 Trackback(s)

  1. 11 12 2008 : Color man pages in Linux | Linux-Trickz
  2. 15 12 2008 : Add Colors to Your Manpages | AmirWatad.com

Leave A Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>