Sunday, July 24, 2011

Adding Color to the Linux Man Pages on CentOS 5

If you wish to add color to the Linux Manual Page, you have to install a program called "most". To install "most", you have to ensure you have RPMForge in your repository. For more information, see Installing RPMForge

Once you have install RPMForge, just do a
# yum install most

================================================================================
 Package      Arch           Version                     Repository        Size
================================================================================
Installing:
 most         x86_64         4.10.2-1.2.el5.rf           rpmforge          55 k

Transaction Summary
================================================================================
Install       1 Package(s)
Upgrade       0 Package(s)

Once done, update your .bash_profile
.......
export MANPAGER="/usr/bin/most"
.......

Source the .bashrc_profile
# source .bashrc_profile

Now call us the Linux Man Page, for example "man ls", you will see color on the manual pages

No comments: