Linux man pages are the most important resource for a Linux freak. By default man pages are formatted using the ‘less’ utility. ‘less’ shows the man pages in black & white, something like this :

grayscale man pages

If you use ‘most’ utility to format man pages, you will get a properly colour-formatted man pages. Take a look at man pages configured on my system :

color man pages

Do you like this one ?? Read on how to configure ‘most’ as your man pages viewer.

Step 1: Install the package ‘most’

$ sudo aptitude install most

Step 2: Configure ‘most’ as your man page viewer using update-alternatives :

$ sudo update-alternatives --config pager

update-alternatives

Enter the number corresponding to /usr/bin/most , here in this screenshot its 5.

Yeah, its done. Nothing more to do !!

Have fun.

Let me know if you find any difficulty doing this.

P.S: This can be done in Fedora as well as other linux also. In Fedora I guess you will have to use the command  /usr/sbin/alternatives instead of update-alternatives as root. Somebody try out in Fedora and let me know.

Share and Enjoy:
  • Digg
  • StumbleUpon
  • del.icio.us
  • Google Bookmarks
  • Reddit
  • Facebook
  • TwitThis
  • Live
  • Technorati
  • Furl
  • Sphinn
  • blogmarks
  • LinkedIn
  • Pownce



11 Comments to “Colourful man pages in Ubuntu”

  1. Mark | July 23rd, 2008 at 4:18 am

    Nice tip! But you need two dashes before config in the line:
    $ sudo update-alternatives –config pager

    i.e. –config

  2. Mark | July 23rd, 2008 at 4:20 am

    Ah, now I see… Your website interprets two dashes as a long dash!

  3. spsneo | July 23rd, 2008 at 2:26 pm

    @Mark
    No worries .
    Keep enjoying articles on this blog !!

  4. Fevrin | August 19th, 2008 at 1:08 am

    I’d like “most” better if it had the same controls as “less”. I was definitely thrown off when I tried to use ‘Page Up’ and ‘Page Down’ to scroll around! I can still work with “most” in the same way as “less,” but I like how I can use the ‘Page’, ‘Home’, and ‘End’ buttons, which are all grouped together on my keyboard, to scroll in “less”.

  5. Páginas MAN en color « Arbol Charyou | August 24th, 2008 at 1:03 pm

    [...] Colourful man pages in Ubuntu [...]

  6. Mejorando la presencia del manual agregando colores « Conociendo Linux | October 4th, 2008 at 6:06 pm

    [...] Fuente e imagenes: spneo [...]

  7. Truco para navegar por los directorios mediante la linea de comandos « Conociendo Linux | October 8th, 2008 at 4:52 am

    [...] Fuente: spsneo.com/blog/ [...]

  8. Warbo | October 8th, 2008 at 11:28 pm

    galternatives provides a nice GUI for updating the system’s alternatives setup. Its package and command name are both “galternatives”.

  9. spsneo | October 9th, 2008 at 1:15 am

    @Warbo
    I prefer command line over gui

  10. Dummy00001 | October 10th, 2008 at 10:16 pm

    “most” is slightly more cumbersome to use. I find “less” simpler and faster at accomplishing things related to reading man pages. (Many shortcuts in “less” match those of vim what is great advantage to me.)

    Also I am lazy to investigate how to change the default frustrating color palette used by “most.”

  11. Henry H | January 8th, 2009 at 5:24 am

    Thanks M8,

    That looks gr8 and easier for my brain to get a handle on.

    Hoo Roo . . .

Leave a Comment